get shipping address country name from the order?

  • Open
  • Pankaj Sharma
    Participant
    July 31, 2019 at 10:29 am #2415
    Pankaj Sharma

    I need to get the country name from the shipping address of a order placed on magento store. Any solution?

    Thanks

  1. Pankaj Sharma
    Participant
    Posts: 154
    August 14, 2019 at 12:35 pm #2573
    Pankaj Sharma

    I found solution for this, Here is solution:

    $order = $observer->getEvent()->getOrder();
    $_shippingAddress = $order->getShippingAddress();
    $country_name_shipping = Mage::app()->getLocale()->getCountryTranslation($_shippingAddress->getCountry());

    Thanks

    • This reply was modified 1 year, 2 months ago by Pankaj Sharma Pankaj Sharma.