Jump to content
  • 0
Ziaur Rahman

State Field Character Limit

Question

I am using Prestashop Cloud version. I need to change State field character limit 32 to 64. Can anyone tell me which file should I edit?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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  :(

Share this post


Link to post
Share on other sites
  • 0

Did you delete /cache/class_index.php?

Sorry, I don't have a cloud setup here, but it seems, you can't not remove that file.

If that's a problem, open a new thread discussing about that.

Share this post


Link to post
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

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More