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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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