Jump to content

Address Field Order


Recommended Posts

Hi

 

I am wondering how to change the order of the address fields on the new user registration.

 

Currently it displays as:

 

 

First name

Last name

Company

Address

Address (Line 2)

City

Zip / Postal Code

Country

State

 

I would like to have it in the North American standard order of

 

 

First name

Last name

Company

Address

Address (Line 2)

City

State

Country

Zip / Postal Code

 

Also after registration, and ordering, the shipping address displays the address properly (configured in back office-->counties), but not the state?

 

In the Back Office Customer Address, there is no State field for the customer? I have attached an image of that.

 

 

Thanks!

post-265115-0-51891000-1322763171_thumb.jpg

Link to comment
Share on other sites

I tried that, and it still displays in the original spot, after city, instead of where I pasted the code in the address.tpl:

 

<p class="required id_state select">
  <label for="id_state">{l s='State'}</label>
  <select name="id_state" id="id_state">
   <option value="">-</option>
  </select>
  <sup>*</sup>
 </p>
 {/if}
 {/foreach}
 {if $stateExist eq "false"}
 <p class="required id_state select">
  <label for="id_state">{l s='State'}</label>
  <select name="id_state" id="id_state">
   <option value="">-</option>
  </select>
  <sup>*</sup>
 </p>
 {/if}
 {if $field_name eq 'postcode'}
 <p class="required postcode text">
  <label for="postcode">{l s='Zip / Postal Code'}</label>
  <input type="text" id="postcode" name="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{else}{if isset($address->postcode)}{$address->postcode|escape:'htmlall':'UTF-8'}{/if}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />
  <sup>*</sup>
 </p>
 {/if}
 <p class="textarea">
  <label for="other">{l s='Additional information'}</label>

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