I need to add a new Country name to the Field of Country in address by changing an existing Country name, but i can't find the place that the country names Are Stored.

i need new country name

For example i Need to change the "Tuvala" Option to my desired Country name.

and also i need too change this value in other Localization formats.

how can i do this change?


The model that loads the country information for use in the config is Mage_Adminhtml_Model_System_Config_Source_Country

Here it will load all the options from the directory country collection and return them as an options array.

The collection class is Mage_Directory_Model_Resource_Country_Collection

$this->_options = Mage::getResourceModel('directory/country_collection')->loadData()->toOptionArray(false);

Completely new countries would need to be added in the correct tables.

  1. directory_country
  2. directory_country_region & directory_country_region_name

There would then need to be a new entry in the Locale Data xml file under /lib/Zend/Locale/Data. After making these changes you will need to clear you cache.

| improve this answer | |
  • Hi David. i will check – mir.moezi Oct 21 '13 at 13:40
  • It worked for me – mir.moezi Dec 15 '13 at 8:52
  • Glad it works. Feel free to accept – David Manners Dec 15 '13 at 19:21
  • @DavidManners will you please answer the question how to update country name in magento2 – Rajeev Singh Jan 23 '19 at 6:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.