Jump to content

How to diable EAN13 check


wiros

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...