Magento: Get country and region collection


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /**
  2.  * Get region collection
  3.  * @param string $countryCode
  4.  * @return array
  5.  */
  6. public function getRegionCollection($countryCode)
  7. {
  8. $regionCollection = Mage::getModel('directory/region_api')->items($countryCode);
  9. return $regionCollection;
  10. }

URL: http://blog.chapagain.com.np/magento-get-country-and-region-collection/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.