To retrieve the full country name rather than just the country code (such as DE) from a Magento order address, follow these steps:
|
1 2 |
$shippingAddressCountry = $order->getShippingAddress()->getCountryModel()->getName(); $billingAddressCountry = $order->getBillingAddress()->getCountryModel()->getName(); |
Getting the country from an address
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.