Jump to content

[SOLVED] Change lenght of the registration field. How??


SK01

Recommended Posts

Hello. I got a shop that is up 'n runnin right now. So I dont want to make any mistake and since I am newb into this, I want to ask you guys for advice.

How can i change the text MAXIMUM character lenght for the company field when registering a new account?

Right now maximum lenght is 32, but i want to increase this. How can I do that?

Please tell me all files I need to change? So if a customer wants to make changes later so it wont be problems as well.

Hope you understand what I mean. Need this ASAP.

MANY THANKS! :)

Link to comment
Share on other sites

Unfortunately, it's not an easy thing to do, unless you know what you are doing. You must edit the ps_address table in your database using phpMyAdmin, go to the "Structure" tab, edit the "Company" field, then increase the "Length/Values" to however many characters you want.

Once you've done that, edit classes/Address.php and update line 81 (in PrestaShop v1.3.1):

protected    $fieldsSize = array('alias' => 32, 'company' => 32, 'lastname' => 32, 'firstname' => 32,



Change the 32 after 'company' to the length you entered in the database.

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