Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Form Field Lengths - Where to change?

Form Field Lengths - Where to change?

Locked

Views: 1,133

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
10 Dec 2008, 11:32 PM
#1
renaissanceart avatar

renaissanceart

New Zenner

Join Date:
Oct 2007
Posts:
65
Plugin Contributions:
0

Form Field Lengths - Where to change?

Hi,

For aesthetic purposes i am trying to make the majority of the fields in the customer application form the same length.

For the life of me i cant find where these values are. I think i have found max values (customer.php??) but not the actual length of it (char width / size)

Anyone know ?

Cheers :clap:

11 Dec 2008, 5:56 AM
#2
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: Form Field Lengths - Where to change?

To change the length of certain fields for the account creation page, override the following file:

  • /includes/templates/template_default/templates/tpl_modules_create_account.php*

Look for the zen_set_field_length() function for the field you want to change.

11 Dec 2008, 6:14 AM
#3
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: Form Field Lengths - Where to change?

It is also advisable that you examine the logic for the zen_set_field_length() function in /includes/functions/functions_general.php if you have any questions regarding the actual field length that is output in the form.

This is because there is logic to take into consideration the actual column size of the fields in the database itself.