wiros Posted February 10, 2012 Share Posted February 10, 2012 I want to diable the EAN13 validation check because I use the foeld for another code. I comment out the EAN13 in classes/product, so I fillin the other format code. But when I want to create a creditnote I still get an error because of the wrong format in the EAN13 field: Fatal error (OrderDetail -> product_ean13 = A207035500) Where is this check hidden? Link to comment Share on other sites More sharing options...
phrasespot Posted February 12, 2012 Share Posted February 12, 2012 Revert the change you made and modify Validate class (/classes/Validate.php) isEan13() method to return true for the particular format you are using. e.g. '/^A\d{9}$/' for the example in your post. Or even better override the Validate class isEan13() method and drop it in /override/classes/ directory so updates will not effect the modification. Link to comment Share on other sites More sharing options...
wiros Posted February 14, 2012 Author Share Posted February 14, 2012 Great, That's working perfect! Tnkx 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