Description
States list is required in India for setting new tax (GST) implementation and for accuracy in shipping address.
This is list of regions need to be appended in InstallData in magento-directory module.
$data = [
['IN','AN','Andaman and Nicobar Islands'],
['IN','AP','Andhra Pradesh'],
['IN','AR','Arunachal Pradesh'],['IN','AS','Assam
'],['IN','BR','Bihar
'],['IN','CH','Chandigarh
'],['IN','CT','Chhattisgarh
'],['IN','DN','Dadra and Nagar Haveli
'],['IN','DD','Daman and Diu
'],['IN','DL','Delhi
'],['IN','GA','Goa
'],['IN','GJ','Gujarat
'],['IN','HR','Haryana
'],['IN','HP','Himachal Pradesh
'],['IN','JK','Jammu and Kashmir
'],['IN','JH','Jharkhand
'],['IN','KA','Karnataka
'],['IN','KL','Kerala
'],['IN','LD','Lakshadweep
'],['IN','MP','Madhya Pradesh
'],['IN','MH','Maharashtra
'],['IN','MN','Manipur
'],['IN','ML','Meghalaya
'],['IN','MZ','Mizoram
'],['IN','NL','Nagaland
'],['IN','OR','Odisha
'],['IN','PY','Puducherry
'],['IN','PB','Punjab
'],['IN','RJ','Rajasthan
'],['IN','SK','Sikkim
'],['IN','TN','Tamil Nadu
'],['IN','TG','Telangana
'],['IN','TR','Tripura
'],['IN','UP','Uttar Pradesh
'],['IN','UT','Uttarakhand
'],['IN','WB','West Bengal']
];
Currently, it is a manual task and a must have requirement in stores running in India on Magento.
It will be very useful if it comes default.
Preconditions
- Magento 2
- A Product created.
Steps to reproduce
- Add the Product do cart.
- Go to Checkout.
- Select India in Country drop-down menu.
Expected result
State/Province should be mandatory drop-down field with appropriate values.
Actual result
State/Province is not mandatory text field.