View Single Post
  #1  
Old 08-03-2006, 07:30 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Reorder fields in main/register_billing_address.tpl

I want to re-order the fields (as displayed) in main/register_billing_address.tpl

I tried "simply" moving things around - but there is some method to the madness... and it appears that the country is tied to state and postal code...

The default order for this tpl is:
What I want is for the customer input to look like this:
note - the country is the last field...

I tried swapping these paragraphs...
Code:
{if $default_fields.b_country.avail eq 'Y'} <TR> <TD align="right">{$lng.lbl_country}</TD> <TD>{if $default_fields.b_country.required eq 'Y'}<FONT class="Star">*</FONT>{else}{/if}</TD> <TD nowrap> <SELECT name="b_country" id="b_country" onChange="check_zip_code()"> {section name=country_idx loop=$countries} <OPTION value="{$countries[country_idx].country_code}"{if $userinfo.b_country eq $countries[country_idx].country_code} selected{elseif $countries[country_idx].country_code eq $config.General.default_country and $userinfo.b_country eq ""} selected{/if}>{$countries[country_idx].country}</OPTION> {/section} </SELECT> {if $reg_error ne "" and $userinfo.b_country eq "" and $default_fields.b_country.required eq 'Y'}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> {/if} {/if} {if $default_fields.b_zipcode.avail eq 'Y'} <TR> <TD align="right">{$lng.lbl_zip_code}</TD> <TD>{if $default_fields.b_zipcode.required eq 'Y'}<FONT class="Star">*</FONT>{else}{/if}</TD> <TD nowrap> <INPUT type="text" id="b_zipcode" name="b_zipcode" size="10" maxlength="10" value="{$userinfo.b_zipcode}" onChange="check_zip_code()" > {if $reg_error ne "" and $userinfo.b_zipcode eq "" and $default_fields.b_zipcode.required eq 'Y'}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> {/if}

Zip code disappeared

Anyone know how to do this?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote