Product Import issue



  • This is not a bug perse but i think it shoud be handled differently.

    When importing, if you setup your products to be in a warehouse and that your quantity depends on that stock you cannot manually add a quantity for that product… all good and dandy.

    the problem comes if you by mistake put a quantity in the import file and also set the “Advanced Stock Management” “Depends on stock” and “Warehouse” settings to true.

    The CSV validation will say the file is valid but when processing you will get a completely ambigous error:

    0_1508382884222_scRect_gzrAGKoVcq0oSEr.png

    It took me a lot of trial and error to figure out what was happening.
    I think that a simple check: If the mentioned advanced stock settings are set to true and you are setting a quantity for the product then the file should not be valid and you should get an error as in other cases.



  • Totally agree with that! We will have to find a smart way to catch the exceptions and return the error message of those exceptions. There is a hasErrors and errors property in the response that we have to fill.

    Here’s an interesting blog post about the import: http://rameerez.com/prestashop-import-error/


 

Looks like your connection to thirty bees forum was lost, please wait while we try to reconnect.