Return to Snippet

Revision: 32575
at September 29, 2010 05:55 by TioSolid


Initial Code
/**
 * Get region collection
 * @param string $countryCode
 * @return array
 */
public function getRegionCollection($countryCode)
{
    $regionCollection = Mage::getModel('directory/region_api')->items($countryCode);
    return $regionCollection;
}

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

Initial Description

                                

Initial Title
Magento: Get country and region collection

Initial Tags
magento

Initial Language
PHP