herveguetin
12/4/2014 - 12:35 PM

The right way to get country name for an order address in Magento

The right way to get country name for an order address in Magento

<?php
// For billing address
$order->getBillingAddress()->getCountryModel()->getName()

// For shipping address
$order->getShippingAddress()->getCountryModel()->getName()
?>