I need to add new country and its regions/states in Magento 2.3.5
I have already done this for Magento1. There are many references available and provide common solution like add entry in directory_country table and changes in vendor/magento/zendframework1/library/Zend/Locale/Data/en.xml file.
But solutions does not work with Magento 2.3.5
I followed the below link and it helps me to add a new country
Answered by Kushal on November 19, 2021
With reference to this link.
Step1: Open vendormagentozendframework1libraryZendLocaleDataen.xml
Step2: Locate territories tag in this file
Step3: copy one of territory tags for the syntax and paste it within the territories tag
Step4: hard part here is to add country code in this file as might not be able to find a unique one, so it’s upto you.
Step5: Save this file
Step6: Open table name directory_country
Step7: It has predefined syntax follow then same and create a new row and enter the same country code as entered in the en.xml file in 3 columns
Step8: Refresh the site’s cache.
Step9: Admin > Configuration > General
Hope it will work for you.
Answered by Mayur Sisodiya on November 19, 2021
2 Asked on September 7, 2020 by raphael-at-digital-pianism
1 Asked on September 4, 2020 by sairaj-gadekar
0 Asked on September 2, 2020 by juliano-vargas
0 Asked on August 31, 2020 by stfn
0 Asked on August 30, 2020 by jackom
1 Asked on August 23, 2020
0 Asked on August 23, 2020 by d-verheij
1 Asked on August 12, 2020 by dacod
1 Asked on August 9, 2020 by hudson-alves-triunfante
0 Asked on August 4, 2020 by alex
1 Asked on August 4, 2020 by nuno-sousa
3 Asked on August 3, 2020 by ravindrasinh-zala
4 Asked on July 30, 2020 by zed-blackbeard
2 Asked on July 26, 2020 by user90560
0 Asked on July 24, 2020 by herve-tribouilloy
Get help from others!