Get Region name from RegionId

Posted: September 21, 2010 in Magento, Version 1.3.*, Version 1.4.*
Tags:

Hi all
if you wish to find region from region_id
Here is the code

$regionModel = Mage::getModel(‘directory/region’)->load(‘region_id’);
$region = $regionModel->getName();

$region is region name …..

Thanks …..
-Bijal Bhavsar 🙂

Advertisements
Comments
  1. Bijal says:

    Thanks vishal..!!

    Its very 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