After July 2021, the 2.3.x release line will no longer receive quality updates, or user guide updates. PHP 7.3 reaches end of support in December 2021 and Adobe Commerce 2.3.x reaches end of support in September 2022. We strongly recommend planning your upgrade now to Adobe Commerce 2.4.x to help maintain PCI compliance.

Customer Address Templates

The information on this page is intended for Adobe Commerce 2.3 customers who are on an extended support contract. The Adobe Commerce Merchant Documentation for current releases is published on the Adobe Experience League.

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.