moNTeZIon Posted November 23, 2015 Share Posted November 23, 2015 Hi, I need some help with this. I'm importing a CSV file with only one product, that exists previously in the catalog. The field Quantity in the file is zero "0", as you can see in the next image: The import process ends without any warning: But, finally, when i go to check the product, my surprise is that the Quantity is still 31, the same Quantity before the import process. I supose the Quantity should change to zero after import the file. I'm right? Maybe is there an option to change, to make it works? Maybe is a bug? Thanks for your help! Regards. Link to comment Share on other sites More sharing options...
Guest Posted November 23, 2015 Share Posted November 23, 2015 It may be the decimal figure. Try it with "0" instead of "0.00" Link to comment Share on other sites More sharing options...
moNTeZIon Posted November 24, 2015 Author Share Posted November 24, 2015 Thanks for your reply. I have tried to import "0" instead of "0.00", but same result. Any other idea? Link to comment Share on other sites More sharing options...
Guest Posted November 24, 2015 Share Posted November 24, 2015 Upload the CSV file here so we can check How did you make sure it was "0" and not "0.00": Excel and others can look at though they are "0" but when you save it the file still contains "0.00" When you did the "0" was it still "0" after the upload? Link to comment Share on other sites More sharing options...
moNTeZIon Posted November 25, 2015 Author Share Posted November 25, 2015 To make the change from "0.00" to "0", I open the file with Notepad, change de value, and save again. And I can see the changed value "0" in the preview before importing. I cannot upload kind of file CSV here, so I've uploaded the zip. Hope you can see something wrong in the file... Thanks! productos-prestashop.zip Link to comment Share on other sites More sharing options...
Guest Posted November 25, 2015 Share Posted November 25, 2015 OK. I can confirm you are correct. "0" quantity does not work. I tried it on my store. It does not work (I use a third party solution for imports so did not know) I have done some research for you Apparently it is a "feature" https://www.prestashop.com/forums/topic/442935-quantity-0-on-csv-import-not-updating-product/ Link to comment Share on other sites More sharing options...
moNTeZIon Posted November 25, 2015 Author Share Posted November 25, 2015 Thanks haylau! I've changed the code in that file to not prevent zero value: controllers/admin/AminImportController.php Line 1827 And now I can import zero quantity without problem. Thanks again haylau Link to comment Share on other sites More sharing options...
Recommended Posts