Jump to content

[Resolved] Changing Postcode, County & Country Address Display Order at Checkout


Recommended Posts

In the skin template content.checkout.confirm.php, the displayed order is as you describe for non-logged in customers:

<div class="row">
 <div class="small-12 large-8 columns">
 <label for="addr_postcode" class="show-for-medium-up">{$LANG.address.postcode}</label>
 <input type="text" name="billing[postcode]" id="addr_postcode"  class="uppercase required" value="{$BILLING.postcode}" 
   placeholder="{$LANG.address.postcode} {$LANG.form.required}">
 </div>
</div>
<div class="row">
 <div class="small-12 large-8 columns">
 <label for="country-list" class="show-for-medium-up">{$LANG.address.country}</label>
    <select name="billing[country]" class="nosubmit" rel="state-list" id="country-list">
    {foreach from=$COUNTRIES item=country}
    <option value="{$country.numcode}" {$country.selected}>{$country.name}</option>
    {/foreach}
    </select>
 </div>
</div>
<div class="row">
 <div class="small-12 large-8 columns">
 <label for="state-list" class="show-for-medium-up">{$LANG.address.state}</label>
 </span><input type="text" name="billing[state]" id="state-list"  required value="{$BILLING.state}">
 </div>
</div>

with another set of statements for the Delivery address.

The rows can be swapped around to show the order of state, postcode, country.

This may introduce some confusion as when the Country is such that it has county/state entries, the State field is changed to a drop-down selector populated with those states. So, until/when the Country is chosen, the State field may get changed.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...