Jump to content
  • 0

State Field Character Limit


Ziaur Rahman

Question

4 answers to this question

Recommended Posts

  • 0
Open /classes/State.php file

 

Search for 

 

'name' =>        array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 32)

 

Replace 32 with 64 or any other number in order to change the size limit.

 

Please note that you can not accept values greater than 64 characters as the field only allows a maximum of 64 characters in the database.

Link to comment
Share on other sites

  • 0

 

Open /classes/State.php file
 
Search for 
 
'name' =>        array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 32)
 
Replace 32 with 64 or any other number in order to change the size limit.
 
Please note that you can not accept values greater than 64 characters as the field only allows a maximum of 64 characters in the database.

 

Thanks for your kind reply. Actually I posted this topic on Prestashop Cloud section. I am using Prestashop Cloud version.

 

By following your advice, first I copied State.php file from Prestashop 1.6 zip and changed 32 to 64, then I uploaded this file into /override/classes/ folder. But result is no change.

 

Sorry for my bad English  :(

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