Customer Address Templates

You can modify the template that determines the format of customer billing and shipping addresses that appear on printed invoices, shipments, and refunds, as well as in the address book of the customer account.

Example 1: Text Templates

{depend address attribute code} a space, a character, or UI label {/depend};
{if address attribute code}{var address attribute code} a space, a character, or UI label};

Example 2: JavaScript Template

#{address attribute code} or User Interface label #{address attribute code}

Address Templates

Change the order of address fields

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel, expand Customers and choose Customer Configuration.

  3. Expand Expansion selector the Address Templates section.

    The section includes a separate set of formatting instructions for each of the following:

    • Text
    • Text One Line
    • HTML
    • PDF
  4. Edit each template as needed, using the examples for reference.

  5. When complete, click Save Config.