10

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.

15

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

| improve this answer | |
  • 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 '18 at 9:23
  • What's the page you want to change? – Khoa TruongDinh Mar 23 '18 at 9:24
  • check out page, for billing and shipping address – user9839 Mar 23 '18 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 – Khoa TruongDinh Mar 23 '18 at 9:41

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.