/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Get region collection * @param string $countryCode * @return array */ public function getRegionCollection($countryCode) { $regionCollection = Mage::getModel('directory/region_api')->items($countryCode); return $regionCollection; }
URL: http://blog.chapagain.com.np/magento-get-country-and-region-collection/