Magento 2.1.2 – Remove ‘Region’ from Address

addressbilling-addresscheckoutmagento2shipping-address

I would like to remove "Region" from all the address forms (checkout, billing address, shipping address, customer's addressbook).
I've set the Backend setting for "Allow to Choose State if It is Optional for Country" to No (under Stores > Configuration > General > General, State Options), but the State Option still gets displayed on the Frontend, but is disabled.

What would be the the right way to remove region option from the address forms?


If I update the Backend settings to:

State is Required for: remove all selected country from here.

Allow to Choose State if It is Optional for Country: Set it as "No"

does not remove the Region (Bundesland/Provinz) on the forms, it only disables it.

enter image description here

Best Answer

If you want disable Region from the address, you have to set below option like.

State is Required for : remove all selected country from here.

Allow to Choose State if It is Optional for Country : Set it as "No"

You can also remove it from "add new address" in customer account.

Copy file form vendor/magento/module-customer/view/frontend/templates/address/edit.phtml

add it in your theme. You can remove region from here for customer add new address.

Save configuration, remove var folder.

Related Topic