12

I want to change Magento's standard address format to the one we use in the Netherlands.

For those who don't know the address format, it is the method in which we write the address. For example, the Dutch format is this:

Name
(Businesspark name etc.)
Street + number
Postal code + town
Country

The address format for the USA is this (Magento2 default):

Name of address
Street number and name
Name of town, State abbreviation + ZIP code
(typical handwritten format)

You can read more at wikipedia.

1

1 Answer 1

22

Login into Magento Admin > STORES > Configuration > CUSTOMERS > Customer Configuration > Address Templates

enter image description here

You also can find in the config xml: vendor/magento/module-customer/etc/config.xml

[EDIT]

We cannot use this config for billing and shipping format on checkout page. In this case, we need to check the format:

-vendor/magento/module-checkout/view/frontend/web/template/shipping-address/address-renderer/default.html

-vendor/magento/module-checkout/view/frontend/web/template/billing-address/details.html

5
  • I see that you implemented this for Japanese store, and I would like to do the same. However, the change here is not working. Is it working for checkout page? I use magento 2.2.3
    – user9839
    Mar 23, 2018 at 9:23
  • What's the page you want to change? Mar 23, 2018 at 9:24
  • check out page, for billing and shipping address
    – user9839
    Mar 23, 2018 at 9:37
  • For the checkout page, we cannot use this config. We need to override these html templates: vendor/magento/module-checkout/view/frontend/web/template/shipping-address/address-renderer/default.html and vendor/magento/module-checkout/view/frontend/web/template/billing-address/details.html Mar 23, 2018 at 9:41
  • Did you find a clean way to overwrite these two HTML template files?
    – Louis B.
    Jan 22, 2021 at 13:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.