Just another WordPress.com weblog

Posts tagged ‘Magento country’

Get Country from Country Code

Hi All
If you have to find Country from CountryCode
Here is the code for you…

$countryModel = Mage::getModel(‘directory/country’)->loadByCode(‘country_code’);

$countryName = $countryModel->getName();

I hope this will help you
Thanks ..
-Vishal Surani

Advertisements