Re: Creating an add-on "product type book" for ZC 1.5
Hi Digi,
this issue is new to me, but I think ZC is translating the link, rather than Bookx.
Do I understand correctly, in the author URL field in the backend you enter:
and in the html code you get the URL:
Code:
http://mydomain.com/catalog/index.php?main_page=redirect&action=url&goto=AUTHORWEBPAGE.com
where "mydomain.com" is the domain of your website?
Posts around the web with similar issues of a "redirect" instead of proper link URLs suggest, that this may have to do with some other problem. Could you see if you there is something helpful in your errorlog in the cache folder?
On what page are you seeing this problem? product_info (detail ?) or product_listing or ...?
Regards,
p.
Re: Creating an add-on "product type book" for ZC 1.5
Quote:
Originally Posted by
philou
Hi Digi,
this issue is new to me, but I think ZC is translating the link, rather than Bookx.
Do I understand correctly, in the author URL field in the backend you enter:
and in the html code you get the URL:
Code:
http://mydomain.com/catalog/index.php?main_page=redirect&action=url&goto=AUTHORWEBPAGE.com
where "mydomain.com" is the domain of your website?
Posts around the web with similar issues of a "redirect" instead of proper link URLs suggest, that this may have to do with some other problem. Could you see if you there is something helpful in your errorlog in the cache folder?
On what page are you seeing this problem? product_info (detail ?) or product_listing or ...?
Regards,
p.
Ok I have an 11,000 strong books site which I wish to convert to the BookX system so at this point in time I have a brand new v1.5.4 system installed along with the BookX plugin so it's completely clean.
I have entered the Author: A J Carella as my first author (under BookX Authors) and entered her webpage as: www.facebook.com/ajcarella - on the v1.5.1 site under the Author Info sidebox this works because she is treated as a Manufacturer.
On the test site if I use the Author Drop-Down field in the sidebox (we won't be using the Author Type field) and select A J Carella I get a centre box with her description and the Webpage Author link. That link is my domain with a url redirect to her Facebook page. When I click the link it opens up a new browser tab but my Index page.
Please feel free to try it it out:
http://digibooks.org.uk/DB_Library_2018/ and select A J Carella from the author drop-down. It's all very basic as you will see but I want to get BookX cracked before I even attempt a massive update of our existing site :)
Re: Creating an add-on "product type book" for ZC 1.5
Just going to check the cahe folder and error logs as well
Re: Creating an add-on "product type book" for ZC 1.5
I have the same behaviour here in my installation, so no need for cache error log from you at this time. Not sure with what ZC version this was introduced, since it was working back in 1.5.1 I think. Anyway, I will let you know what I find out.
Regards,
p.
Re: Creating an add-on "product type book" for ZC 1.5
Quote:
Originally Posted by
DigiBooks
Just going to check the cahe folder and error logs as well
Nothing obvious that I can see .. delete all error logs and tried again biut no new logs created
Re: Creating an add-on "product type book" for ZC 1.5
Quote:
Originally Posted by
philou
I have the same behaviour here in my installation, so no need for cache error log from you at this time. Not sure with what ZC version this was introduced, since it was working back in 1.5.1 I think. Anyway, I will let you know what I find out.
Regards,
p.
Much appreciated .. sorry to cause you a problem ;)
Re: Creating an add-on "product type book" for ZC 1.5
Well, don't ask me why this was working before and now it isn't, but the "redirect&goto=..." etc. link conversion was indeed part of the BookX code.
I have changed it and you can find an updated BookX distribution version 0.9.4revision8 at sourceforge. I will upload the new archive here at ZC.com as well, but it will probably take a little to show up in the download section.
The only changes are in these two files:
Code:
ZEN-CART/includes/modules/pages/product_bookx_info/main_template_vars_product_type.php
ZEN-CART/includes/classes/observers/class.bookx_observers.php
Best regards,
p.
Re: Creating an add-on "product type book" for ZC 1.5
Hi
I've made a extension for EP4 , the EP4Bookx , to import bookx product type by a csv file.
It still only works with the default language ( it only imports your default language). If you have a book shop with more than one language, I think there's a way to get around, but not to fancy. Anyway, soon I hope to finish this part. If you use just one language, it's ok.
Note: This is working with EP4.0.31 (or 30). EP4.0.32, will have some changes in the code, so I guess only then, there is a possibility to incorporate EP4Bookx with a zencart notifier.
Anyway, it inserts, updates and deletes bookx fields, supports multiple authors and genres, doing them as you would for EP4 categories. So :
Author A^Author B^Author C
It has the ability to assign some default values to bookx fields, so if a fields is left empty ( intentionally or not ), the default value is used.
Also about types with multiple authors : If you have a default type assign ( writer, or whatever ) , then in the file, things could go this way :
We can fill all the fields
Authors names: Author A^Author B^Author C
Authors Type: Writer^Illustrator^Wirter
But also
Authors names: Author A^Author B^Author C
Authors Type: (empty )
So, all the authors are of type writer.
Or
Authors names: Author A^Author B^Author C
Authors Type: Writer^Illustrator
In this case, Author C would be writer .
Well, hope you'll find it useful,
Do your changes in a local environment, this is still in Beta. I'll try to fix and improve issues that could come up.
For now, it's just a quick way to fill all bookx fields.
It's on git : https://github.com/mesnitu/EasyPopulate-4.0-BookX
Best regards
Edit : Just to mention: it imports the name, not the authors, publishers description and images, etc...
bookx_author_name
bookx_author_type
bookx_subtitle
bookx_genre_name
bookx_publisher_name
bookx_series_name
bookx_imprint
bookx_binding
bookx_printing
bookx_condition
bookx_isbn
bookx_size
bookx_volume
bookx_pages
bookx_publishing_date
Re: Creating an add-on "product type book" for ZC 1.5
Quote:
Originally Posted by
philou
Well, don't ask me why this was working before and now it isn't, but the "redirect&goto=..." etc. link conversion was indeed part of the BookX code.
I have changed it and you can find an updated BookX distribution version 0.9.4revision8 at sourceforge. I will upload the new archive here at ZC.com as well, but it will probably take a little to show up in the download section.
The only changes are in these two files:
Code:
ZEN-CART/includes/modules/pages/product_bookx_info/main_template_vars_product_type.php
ZEN-CART/includes/classes/observers/class.bookx_observers.php
Best regards,
p.
Ok that is just giving me www.facebook.com%2fajcarella instead of www.facebook.com/ajcarella
Re: Creating an add-on "product type book" for ZC 1.5
Quote:
Originally Posted by
DigiBooks
In the bottom left-link of the screen it is showing correctly but linking me to www.facebook.com%2ajcarella so it looks like the the last forward slash is being interpreted as a space character (although I would have thought that to be %20) not sure what %2 is.