//below code load all the State of US
$countryCode= ‘US’;
$states = Mage::getModel('directory/country')->load($countryCode)->getRegions();
$slist= array();
foreach ($states as $state) {
$sid = $state->getId();
$sname =
$state->getName();
$slist[$sid]=$sname;
}
asort($slist);
No comments:
Post a Comment