Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Where is the shipping address field length setting?

Where is the shipping address field length setting?

Locked

Views: 3,693

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
26 Mar 2008, 5:19 AM
#1
greggshort avatar

greggshort

New Zenner

Join Date:
Apr 2007
Posts:
21
Plugin Contributions:
0

Where is the shipping address field length setting?

On the page /index.php?main_page=checkout_shipping_address, where is the definition of the shipping address block? My street_address field is displaying too long, and changing it in:
\includes\templates\MYTEMPLATE\templates\tpl_modules_checkout_new_address.php doesn't seem to have any effect.

Same problem occurs on login screen...

What am I missing??? Where is it really pulling from?

Zen Cart V1.3.7

Thanks,

Gregg Short
[email protected]

26 Mar 2008, 5:33 AM
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,591
Plugin Contributions:
0

Re: Where is the shipping address field length setting?

Too long? A screen shot or URL would be helpful.

17 Sep 2008, 9:06 PM
#4
susb8383 avatar

susb8383

Zen Follower

Join Date:
Feb 2008
Posts:
129
Plugin Contributions:
0

Re: Where is the shipping address field length setting?

Hi,

I've been wondering that myself. But then I saw this post:
http://www.zen-cart.com/forum/showthread.php?t=43978

He says,

I have decided to make a number of fields in zen_address_book and zen_customers 64 characters in length, as opposed to 32

Previously only "street address" was 64 characters long - and thus in create_account it was a much longer text field, as the length of the HTML field is derived directly from the SQL field length it relates to.

This makes the layout of the name and address fields in the "create_account" template more consistent.

So that must be the answer--the display size of the field is calculated dynamically based on the size of the table field itself.

You can either change the actual table field size like he did or try the instructions in this post to override that dynamic calculation:
http://www.zen-cart.com/forum/showthread.php?t=28779

8 Sep 2010, 9:02 PM
#5
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Re: Where is the shipping address field length setting?

I'm looking for the code where the size on the postal code field is, so if anyone know, please leave me a message here.. :)