Sunday, July 8, 2012

how to fetch all states of country in magento?


$countryList = Mage::getResourceModel('directory/country_collection') ->loadData() ->toOptionArray(false);
$regionCollection = Mage::getModel('directory/region') ->getResourceCollection() ->addCountryFilter('IN')->load();

No comments:

Post a Comment

Please mention your comments.......