Originally Posted by
kmbi
Hi,
I tested this mod too.
ZC 1.3.9h with few mods - Ceon uri, Lightbox, Additional product fields ...
1. Excell export work fine. There is xls file created with correct time stamp.
2. Excell import - part of it works:
- when ID column heading is changed to PPL, upload file and click on populate - SQL error appears:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Clothing' and cd.language_id=1' at line 1
in:
[select c.categories_id, cd.categories_name from categories c, categories_description cd where c.categories_id=cd.categories_id and c.parent_id=0 and cd.categories_name='Men's Clothing' and cd.language_id=1]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
- when you hit BACK button you will see that there is products out of any category. The problem is that there is in database, in table Products field "master_category_id", but excel populate sending value to field "category_id". SQL script stops. Only first product in list is particularly added.
- there is no record in table "products_to_categories" - this is the reason for invisible products, located out of any category. If you try to add manual field in table "products_to_categories" product appears.
3. DO NOT try to rename defined categories_id to master_categories_id. Everything in DB goes wrong... You can add additional def "master_categories_id" in excell.php
I'll try to rewrite defs in excell.php. There is need of additional $products_to_categories, I thing... If someone can help, this will be good. I'll share the solution when I have it.
Bookmarks