Just another WordPress.com weblog

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

Comments on: "Get Country from Country Code" (3)

  1. Awesome!! Thanks a lot – it definitely helped, exactly what I was trying to find 🙂

  2. Adam Malkin said:

    Thanks, this savedme loads of time

  3. Thanks, for the code its really helpful

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: