After July 2021, the 2.3.x release line no longer received quality updates or user guide updates. PHP 7.3 reached end of support in December 2021, and Adobe Commerce 2.3.x reached end of support in September 2022. We strongly recommend upgrading to Adobe Commerce 2.4.x to help maintain PCI compliance.
Customer Address Templates
This site contains archived merchant documentation for a version of Adobe Commerce and Magento Open Source that has reached end-of-support.
The documentation available here is intended for historical reference only and is not maintained.
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};
{/if}
Example 2: JavaScript Template
#{address attribute code} or User Interface label #{address attribute code}
Change the order of address fields
-
On the Admin sidebar, go to Stores > Settings > Configuration.
-
In the left panel, expand Customers and choose Customer Configuration.
-
Expand the Address Templates section.
The section includes a separate set of formatting instructions for each of the following:
- Text
- Text One Line
- HTML
-
Edit each template as needed, using the examples for reference.
-
When complete, click Save Config.