Jump to content

Address limitation characters to key in


Recommended Posts

./classes/Adress.php

 

Try to change the length parameter at the end of appx. line 122.

            'address1' =>            array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128),

Report back.

Link to comment
Share on other sites

thanks for reply Scully but changing the size parameter only makes the box smaller, do you know what the changes the input? I read something like 'maxlength' => 30, but seems not to work either. Sorry I'm not a developer, so can read/write PhP

 

       'address1' =>            array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128),

Link to comment
Share on other sites

Jo,

 

I cannot confirm your findings - at least not for PS 1.6.1 up to latest available version. Changing the code leads to a correct error message when exceeding 32 characters. You might have another prestashop version running or you changed it the wrong way.

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