Sunday, November 25, 2012

Get Country Name from Magento Checkout/Billing Details

Like so: $checkout = Mage::getSingleton('checkout/session')->getQuote(); $billing_addr = $checkout->getBillingAddress(); $country_name = Mage::getModel('directory/country')->load($billing_addr->getCountryId())->getName(); echo $country_name;

No comments:

Post a Comment