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); |
Getting a list of all countries
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.