junsenoue Posted November 23, 2015 Share Posted November 23, 2015 Hello, how can i fix that problem in presta 1.6.1.1? Thank you. Link to comment Share on other sites More sharing options...
Guest Posted November 23, 2015 Share Posted November 23, 2015 I suppose you have checked that the EAN is actual correct? Type it here and I can check it on my store How are you getting the error? When typing in from the back office? When uploading via CSV? Try to give much more info so we can help you Link to comment Share on other sites More sharing options...
junsenoue Posted November 29, 2015 Author Share Posted November 29, 2015 (edited) Hello, thank you for your answers ) I've got this problem, when i'm trying to import .csv file on my e-shop. When i trying to upgrade the 1-Click Upgrage module (to Presta 1.6.1.3. from 1.6.1.1.), and i've got a error message "Javascript (parseJSON) upgrageNow". (Maybe in a new version this problem will be solved ) I've had the same problem with 1.6.1.0 even though the EAN13 code was correct. It was solved though, in PS 1.6.1.2. As a temporary workaround I made an override for the Validate class to accept every code. Place the following contents in the file /override/classes/Validate.php <?php class Validate extends ValidateCore { public static function isEan13($ean13) { return true; } } You will have to merge the contents if the file exists or otherwise create the file. Thank you, but it is not working... Edited November 29, 2015 by junsenoue (see edit history) Link to comment Share on other sites More sharing options...
junsenoue Posted November 30, 2015 Author Share Posted November 30, 2015 Property Product->Ean13 Is Not Valid - - - - - - - - - - - - Download .csv - - - - - - - - - - - - "1-Click" error )) I don't know how to fix this problem. I've trying to reinstall the "1-Click Upgrage", but this problem is still urgent... Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2015 Share Posted December 1, 2015 Start a new thread about the upgrade - that is a different issue (search Google for prestashop javascript error upgrade now 0 Google searches this form better than the forum search) The CSV issue: The file does not contain an EAN number at all what EAN number are you using? Link to comment Share on other sites More sharing options...
junsenoue Posted December 5, 2015 Author Share Posted December 5, 2015 Start a new thread about the upgrade - that is a different issue (search Google for prestashop javascript error upgrade now 0 Google searches this form better than the forum search) The CSV issue: The file does not contain an EAN number at all what EAN number are you using? EAN number is empty. i'm trying to add a special EAN number like 4593125478965, but it still not working... Link to comment Share on other sites More sharing options...
gabriiel Posted December 5, 2015 Share Posted December 5, 2015 (edited) Interesting problem, I have added a lot of EAN numbers to my production e-shop PS 1.6.1.1 and never faced this problem... Have you tried to add the number via the BackOffice administration manually? Edited December 5, 2015 by gabriiel (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted December 5, 2015 Share Posted December 5, 2015 EAN number is empty. i'm trying to add a special EAN number like 4593125478965, but it still not working... I wanted to see the actual CSV file you are trying to upload with all the data including the EAN number so I could see if there are any formatting issues Excel can do strange stuff with numbers for example 4593125478965 may be converted to 4.59 E13 or some scientific notation, or perhaps it has been converted to text, or it has decimal places added Link to comment Share on other sites More sharing options...
junsenoue Posted December 5, 2015 Author Share Posted December 5, 2015 (edited) I wanted to see the actual CSV file you are trying to upload with all the data including the EAN number so I could see if there are any formatting issues Excel can do strange stuff with numbers for example 4593125478965 may be converted to 4.59 E13 or some scientific notation, or perhaps it has been converted to text, or it has decimal places added Thank you for your answer! But i didn't have an EAN-13 number in all of my 908 products . Actually I want to disable EAN-13 check, when I importing the products. (.csv) The same problem of Presta user is here: https://www.prestashop.com/forums/topic/226673-disable-ean13-check-csv-import/ Validate.php /** * Check for barcode validity (EAN-13) * * @param string $ean13 Barcode to validate * @return bool Validity is ok or not */ public static function isEan13($ean13) { return !$ean13 || preg_match('/^[0-9]{0,13}$/', $ean13); } .csv (Download) This is original .csv table from my website. So i can to exprot this product, from the category "test", but i can't to import the same file in this category, but also with a diferent ID number of product, because of the error of EAN-13 code, which is empty in all of my 908 products Edited December 5, 2015 by junsenoue (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted December 5, 2015 Share Posted December 5, 2015 OK, I think I understand. I downloaded and uploaded your file, and it worked for me So it does work Make sure your settings are correct, I used these: AND MOST IMPORTANT Make sure yo match all the headings. The default headings are wrong see here: So go through each headings and make it matches with the csv file. I chose "Ignore this field" for many of the fields Link to comment Share on other sites More sharing options...
junsenoue Posted December 5, 2015 Author Share Posted December 5, 2015 OK, I think I understand. I downloaded and uploaded your file, and it worked for me success.jpg So it does work Make sure your settings are correct, I used these: settings.jpg AND MOST IMPORTANT Make sure yo match all the headings. The default headings are wrong see here: So go through each headings and make it matches with the csv file. I chose "Ignore this field" for many of the fields Thank you for your answer!!!!!!!!! ) Now, it's works!!!!!!!!!!!!!! The problem was in headings. )) THAK YOU VERY MUCH!!!! Link to comment Share on other sites More sharing options...
Recommended Posts