Use the code below to get a list of all countries. It can be used to create a country dropdown list for example.
|
1 |
$countryList = Mage::getModel('directory/country')->getResourceCollection()->loadByStore()->toOptionArray(true); |
Use the code below to get a list of all countries. It can be used to create a country dropdown list for example.
|
1 |
$countryList = Mage::getModel('directory/country')->getResourceCollection()->loadByStore()->toOptionArray(true); |