Magento: diasabling regions

Best Way to Remove/Disable States/Province Field for Specific Countries in Magento 1 and Magento 2

The State/Province field was something that many developers struggled for years in Magento – there are countries that don’t need this feature but it’s set up in Magento that not only this field was required one, but also there was a drop-down with states/provinces/counties that was not correct/needed/actual. Although the information is very important for some countries and used for both tax and shipping calculation, but there are a lot of countries that don’t need this info at all.

In previous Magento versions (up to Magento CE 1.7) there were a lot of different ways to do the task – by editing several js/phtml files in your theme, by using the SQL query TRUNCATE TABLE directory_country_region; or by installing Magento extensions to remove the field (if you don’t have chance to update to 1.7.0.2 for some reason I’d go with this free “Remove/Disable or Change Displayed States and Regions extension” by Eltrino)
 
 

In Magento Community Edition 1.7+ Magento developers heeded the requests of users and developers and finally added the functionality to manage State/Province field from the admin area. In other words, if the State/Province is not required for any countries, now you can remove the field entirely or include it as an optional field.

From the Admin panel, go to System > Configuration. Then on the left, under General tab click on General and click on States Option.

There is a list of all countries where you can select the countries where you want the State/Province to be required.

Also there is the second setting ‘Display not required State’. If ‘Yes’ than the State/Province field will be included in all addresses as a not required field; if ‘No’ the field will be removed completely from all addresses in your store (for those countries which are unselected in the list).

Magento 2

To remove state/province field for some countries go to Admin -> Stores -> Configuration -> General -> General. Under State Options you can select countries which will require State field to be filled in and for the rest of countries you can choose to display state field or not.