Magento – get country list select dropdown
If you want to use the dropdown country selector, the same one as on the registration page: <?php $_countries = Mage::getResourceModel(‘directory/country_collection’) ->loadData() ->toOptionArray(false) ?> <?php if (count($_countries) > 0): ?> <select name=”country” id=”country” class=”required-entry”> <option value=””>– Please Select –</option> <?php foreach($_countries as $_country): ?> <option value=”<?php echo $_country[‘value’] ?>”> <?php echo $_country[‘label’] ?> </option> <?php […]
Read More