user3724 LiteCart Fan From United States Member since Jan 2017 user3724 Feb 1 2018 08:58 PM 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 From United States Member since Jan 2017 user3724 Feb 1 2018 09:00 PM 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 From Sweden Member since May 2013 tim Feb 1 2018 10:39 PM 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 From United States Member since Jan 2017 user3724 Feb 2 2018 07:09 AM I made sure the parameters matched those of the export. I will make another set of files tonight.
kuopassa Developer From Finland Member since Oct 2017 kuopassa Feb 2 2018 12:47 PM Hijacking this thread for couple words, sorry. Idea for Tim: make a Duplicate/Clone feature to products.
tim Founder From Sweden Member since May 2013 tim Feb 3 2018 04:33 AM @kuopassa this feature is already in the list of products. Admin -> Catalog
user3724 LiteCart Fan From United States Member since Jan 2017 user3724 Feb 5 2018 04:24 PM 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 From Sweden Member since May 2013 tim Feb 5 2018 04:47 PM 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 From United States Member since Jan 2017 user3724 Feb 5 2018 05:58 PM Patch applied, will verify later.