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
Last edited by mesnitu; 2 Feb 2016 at 11:18 PM.
“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison
Bookmarks