Customer Address Templates

The store administrator can modify the address templates that control the format of the
customer billing and shipping addresses that appear in the following locations:

  • General customer billing and shipping address format
  • Shipping and billing addresses in customer’s address book (available during the shopping
    cart checkout)
  • Address format for PDF sales documents, such as invoices, shipments, and refunds

Example 1: Text Templates

{{depend address attribute code}} a space, a character, or UI label
{{if address attribute code}}{{var address attribute code}} a space,
a character, or UI label
For Text, Text One Line, HTML and PDF Address Templates

Example 2: JavaScript Template

#{address attribute code} or User Interface label #{address
attribute code}
For JavaScript Address Template

To change the order of address fields:

1. On the Admin menu, select System > Configuration. Then in the panel on the left under
Customers, select Customer Configuration.
2. Click to expand the Address Templates section. The section includes a separate set of
formatting instructions for each of the following:

  • Text
  • Text One Line
  • HTML
  • PDF
  • JavaScript Template

3. Edit each template as needed, using the examples below for reference.
4. When complete, click the Save Config button.

Leave a Comment

Your email address will not be published. Required fields are marked *