Jump to content

ISBN fiel to accept letters and numbers [Solve]


Eutanasio

Recommended Posts

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

  • Eutanasio changed the title to ISBN fiel to accept letters and numbers [Solve]

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...