Re: Creating an add-on "product type book" for ZC 1.5
Ok more basic issues:
Missing constants being defined in english:
TEXT_AUTHOR_DEFAULT_TYPE and TEXT_AUTHOR_TYPE_IMAGE_DIR
Also, after running the update it didn't update the Authors table to include the author_image_copyright field - only making this change in the 0.9.3 version of the code.
Re: Creating an add-on "product type book" for ZC 1.5
Hi Philou,
And finally I have a couple of other constants that are missing:
// Category listing items for product type bookx
define('LABEL_BOOKX_ISBN', 'ISBN: ');
define('LABEL_BOOKX_VOLUME', 'Volume %s');
These are missing from the product_bookx.php file in the lang\english\extra_definitions folder of admin.
I mentioned previously that I was wanting to be able to use the Author Type to distinguish between Authors and Illustrators so allowing the user to use the filtering to restrict based on one or the other - is this going to be an easy fix to implement?
Sorry for being so demanding!
Kinsley
Re: Creating an add-on "product type book" for ZC 1.5
And finally before I leave for the day.
There are various configurations not working so I had a look into the code and it appears I'm missing all of the configuration options of the BookX group.
So as an update from 0.9.1 to 0.9.4 it doesn't include these options!
Sorry for this!
Kinsley
Re: Creating an add-on "product type book" for ZC 1.5
Hi Kinsley,
looks like I best install 0.9.1 in a testshop and see what the updater does.
Just one thing: you do realize that the updates for 0.9.2 / 0.9.3 run right after the changes for 0.9.1, there are no "break" commands in the script..?
I just mention this because you say "only making this change in the 0.9.3 version of the code". Maybe you mean something else?
I will check as soon as I can, but it is quite possible that I won't get to it before Friday this week.
Author type and filtering based on that is implemented in 0.9.4 and I am not aware of any bugs at this time.
regards,
p.
Re: Creating an add-on "product type book" for ZC 1.5
Hi Philou,
Yeah I get that but what I don't understand is that if it doesn't have a break then why does it not have any of those configurations? The config group isn't there so its not even starting to create the configuration lines.
Very odd!
Re: Creating an add-on "product type book" for ZC 1.5
Hi Red,
I will most probably only get to this on Friday this week at the earliest, so I ask you to bear with me until i install a 0.9.1 testshop here and go through the upgrade process myself. But could you clarify for me what exactly you mean by "config group isn't there":
Are you looking in the database table and there is no entry for a BookX config group in the table "dbprefix_configuration_group" ?
Are you stepping through the installation script and variable "$cf_gid" is null ?
Or are you looking at the ZC Admin and there is no entry for Bookx in the menu "Configuration"?
This will help me understand a bit better what is happening.
In the meantime I recommend you resist the temptation to make any manual changes like adding defined clauses in the installation script or commenting out more code, because we will have a state of your files and your database, which will be next to impossible (for me) to troubleshoot. The plugin should really work out of the book in terms of basic functionality like upgrading etc. :)
Regards,
p.
Re: Creating an add-on "product type book" for ZC 1.5
Hi Philou,
That's fine - I'd rather not be making any changes to your code - I'll go through it like you suggest but otherwise (unless I find something obvious) I will wait till Friday for your review.
Thanks,
Kinsley
Re: Creating an add-on "product type book" for ZC 1.5
Hi Philou,
I found out that the reasons were down to missing data from a botched install of your code previously. I've taken on this job from someone else not knowing that the code failed to run successfully first time.
Apologies for wasting your time!
Kinsley
Re: Creating an add-on "product type book" for ZC 1.5
Hi
I'm having a issue, probably not related to the module itself , but I can't seen to get this working.
I'm using tabs to display new, featured and special in the main page.
For some reason when I make the necessary changes to the file new_products.php , all I get it's a blank in the news product tab.
The featured and special are ok, just the new product.
If I comment again the 3 alterations made in that file, everything it's ok , but of course no new bookx products comes up...
If I go to main_page=products_new the bookx products are there....
Thanks
By the way , did anyone already used the bookx modules with the ceon_uri mapping ?
Re: Creating an add-on "product type book" for ZC 1.5
I made a fresh install with 1.51 , and the template that is Responsive Avonlee Contempo Template, and the new products doesn't work...
As I just get a blank tab , I don't know were to look to try to make this work.
There's no error log...
Well , if anyone can point me some way to check for errors, or some tool to debug , or something :blink:
Thanks