Eutanasio Posted March 10, 2023 Share Posted March 10, 2023 Hi, I don't need the ISBN field but want to use it for another internal reference but won't accept my inputs when have letters. I went to Classes/Validate-php and changed this: public static function isIsbn($isbn) { return !$isbn || preg_match('/^[0-9A-Z]{0,12}$/', $isbn); } So it should be accepting it now, but I still get the alert in the admin and won't let me save the field. Thanks for the help! Link to comment Share on other sites More sharing options...
ventura Posted March 13, 2023 Share Posted March 13, 2023 You may have to change the isbn constraints in the file src/PrestaShopBundle/Form/Admin/Product/ProductOptions.php 1 Link to comment Share on other sites More sharing options...
Eutanasio Posted March 13, 2023 Author Share Posted March 13, 2023 24 minutes ago, ventura said: You may have to change the isbn constraints in the file src/PrestaShopBundle/Form/Admin/Product/ProductOptions.php Thanks! it was that 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