iconnect Posted August 2, 2019 Share Posted August 2, 2019 Hello, I have a large catalog (over 5000 products) and I use csv to import and icecat to make better descriptions. Now, I have an issue: I imported all the EAN using the product reference instead of the EAN13. This is because not always my EAN numbers are of 13 numbers and the CSV import tool was preventing to import as he used to check the size. To find the product, icecat import module I'm using it looks over EAN13 to find the products. Of course, my EAN13 field are all empty and those codes are under the product reference. I'm wondering how to resolve this issue. Easier way, I guess, would be to AVOID the validation of the EAN during import, so I would be able to import shorter/larger references in the proper field and icecat module will automatically scraping all infos. This is the custom module I'm using: https://addons.prestashop.com/it/product-tab/17861-icecat-integration.html Thanks in advance for everyone who will reply. Link to comment Share on other sites More sharing options...
NemoPS Posted August 4, 2019 Share Posted August 4, 2019 To avoid the validation, open classes/Product.php, look for this line 'ean13' => array('type' => self::TYPE_STRING, 'validate' => 'isEan13', 'size' => 13), Remove the "validate" part Link to comment Share on other sites More sharing options...
iconnect Posted August 5, 2019 Author Share Posted August 5, 2019 Hello, Thank you for your reply! Worked like a charm Link to comment Share on other sites More sharing options...
Robert_R Posted August 6, 2019 Share Posted August 6, 2019 (edited) On 8/4/2019 at 7:23 PM, NemoPS said: To avoid the validation, open classes/Product.php, look for this line MyCFAvisit 'ean13' => array('type' => self::TYPE_STRING, 'validate' => 'isEan13', 'size' => 13), Remove the "validate" part Exactly what I needed! You just saved me several hours. Thanks! Edited August 6, 2019 by Robert_R (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now