user3724 LiteCart Fan Da United States Membro dal gen 2017 user3724 1 feb 2018 20:58 in litecart admin, I exported the csv of one product. i opened this csv in excel, and altered the id to be '2', which is unique and new. i saved it to a different csv file. i then attempted to import this new csv with the import new products option checked. (the end goal was to clone the product by editing csv / adding to it) I received the following, and no new product in the database. Is the export incompatible with the import? thanks... CSV Import Warning: Inconsistent amount of columns on line 2 in ~/includes/functions/func_csv.inc.php (Line 63) Warning: Invalid argument supplied for foreach() in ~/admin/catalog.app/csv.inc.php (Line 271)
user3724 LiteCart Fan Da United States Membro dal gen 2017 user3724 1 feb 2018 21:00 ok, in an attempt at making the problem less complex, I simply downloaded a csv export, and reuploaded it with no alteration, and still get the same error.
tim Founder Da Sweden Membro dal mag 2013 tim 1 feb 2018 22:39 They should be compatible with one another. Attach your export here in the thread so I can see what's wrong in it. Did you set any specific parameters during import?
user3724 LiteCart Fan Da United States Membro dal gen 2017 user3724 2 feb 2018 07:09 I made sure the parameters matched those of the export. I will make another set of files tonight.
kuopassa Developer Da Finland Membro dal ott 2017 kuopassa 2 feb 2018 12:47 Hijacking this thread for couple words, sorry. Idea for Tim: make a Duplicate/Clone feature to products.
tim Founder Da Sweden Membro dal mag 2013 tim 3 feb 2018 04:33 @kuopassa this feature is already in the list of products. Admin -> Catalog
user3724 LiteCart Fan Da United States Membro dal gen 2017 user3724 5 feb 2018 16:24 here's the product export (which is only one product). below is the error. CSV Import Warning: Inconsistent amount of columns on line 2 in ~/includes/functions/func_csv.inc.php (Line 63) Warning: Invalid argument supplied for foreach() in ~/admin/catalog.app/csv.inc.php (Line 271) The screenshot is the options, which I basically only selected English to export. products-en.csv
tim Founder Da Sweden Membro dal mag 2013 tim 5 feb 2018 16:47 Thank you for reporting and for providing necessary data to simulate this problem. I discovered an issue while attempting to auto identifying delimiter. Here is the fix: https://github.com/litecart/litecart/commit/b2054e11b4c586886c89f6c1ccd5e8652a7be091
user3724 LiteCart Fan Da United States Membro dal gen 2017 user3724 5 feb 2018 17:58 Patch applied, will verify later.