Magento 2 How to get Customer Shipping Address from the order number

Magento 2 How to get Customer Shipping Address from the order number

In ecommerce application when a customer places the order , the customer needs to fill the shipping 

address , this shipping address will be used to deliver the product to the customer doorstep. The

shipping address of the customer is store in the magento 2 and is associated with the order details, to

get the customer shipping address details and display in your application you can do it with the order


$orderId = 1;

        $orderDetailsArray = $objectManager->create('Magento\Sales\Model\Order')->load($orderId);

$shippingDetailsData =$orderDetailsArray->getShippingAddress();

#get customer shipping Region
echo $shippingDetailsData->getRegion();

#get customer shipping Postcode
echo $shippingDetailsData->getPostcode();

#get customer shipping LastName
echo $shippingDetailsData->getLastName();

#get customer shipping street

#get customer shipping City
echo $shippingDetailsData->getCity();

#get customer shipping Email
echo $shippingDetailsData->getEmail();

#get customer shipping Telephone
echo $shippingDetailsData->getTelephone();

#get customer shipping suffix
echo $shippingDetailsData->getSuffix();

#get customer shipping vatid
echo $shippingDetailsData->getVatId();


  1. I am attracted by the presentation of this article. This information about shipping, is really good. I really appreciate your work. It is a gainful article for us. Keep posting. Thank you.
    international freight shipping companies

  2. I generally check this kind of article and I found your article which is related to my interest. Genuinely it is good and instructive information. Thankful to you for sharing an article like this.shipping company in Canada

  3. You wrote this post very carefully.shipping cost to india The amount of information is stunning and also a gainful article for us. Keep sharing this kind of articles, Thank you.

  4. I always check this type of advisory post and I found your article which is related to my interest.boat rent in Trogir This is a great way to increase knowledge for us. Thanks for sharing an article like this.

  5. Great job, this is good information which is shared by you. This information is very meaningful and factual for us to increase our knowledge about it. Always keep sharing this type of information. Thanks. Read more info about Affordable Polish Boat Registration

  6. Very well written article. It was an awesome article to read. Complete rich content and fully informative. I totally Loved it.Freight Companies In Miami

  7. I respect this article for its well-researched subject matter and superb writing. Find out more by reading. I became so engrossed in this subject that I couldn't put the book down. I am in awe of your talent and labour. I greatly appreciate it.professional auto shipping company usa


Post a Comment