Friday 4 July 2014

How to Get All Country List In Magento

$clist= array();
$collection = Mage::getModel('directory/country')->getCollection();
foreach ($collection as $country){
$cid = $country->getId();
            $cname = $country->getName();
            $clist[$cid]=$cname;
}

asort($clist); // sort country list 

No comments:

Post a Comment

List OF BANK PAN Numbers

List OF BANK PAN Numbers Bank/Home Loan Providers PAN Number Allahabad Bank AACCA8464F Andhra Bank AABCA7375C Axis Bank...