Tag : regions

Magento countries and regions

Get all countries:


$countries = Mage::getModel('directory/country_api')->items();

Get regions based on country code:


$regions = Mage::getModel('directory/region_api')->items($countryCode);