sylarlocke Posted August 17, 2018 Share Posted August 17, 2018 (edited) Hi, I'm trying to be able to validate the field ean13, so that there is only one record in the table with a unique code.I think it's the file "AdminProductController.php" in which I have to check.I'm not sure where I put the code when I add a product and get a validation error message like "Ean13 number already exists a record".I have thought something similar to this: 'SELECT id_product FROM' ._DB_PREFIX _. 'Product WHERE ean13 = "'. PSQL ($ ean13). ' Can someone help me?Thank you. Edited August 17, 2018 by sylarlocke (see edit history) Link to comment Share on other sites More sharing options...
sylarlocke Posted August 17, 2018 Author Share Posted August 17, 2018 I Have found this reply here: https://www.prestashop.com/forums/topic/395050-products-reference-code-field-to-be-required-and-unique/ Sorry duplicate post. 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