Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top