Posted By

TioSolid on 09/29/10


Tagged

magento


Versions (?)

Magento: Get country and region collection


 / Published in: PHP
 

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

  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. }

Report this snippet  

You need to login to post a comment.