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. This blog is really helpful to deliver updated affairs over internet which is really appraisable. Shipping From China To Amazon Usa

  3. 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

  4. An intriguing post that you have shared here. I got information from your article, It will truly help the individuals who need this data. freight forwarders Melbourne

  5. 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.

  6. 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.

  7. I found decent information in your article. I am impressed with how nicely you described this subject, It is a gainful article for us. Thanks for share it.myntra shipping to Germany

  8. 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

  9. Amazing post, thanks for sharing such informative article. Useful and interesting. Take look at this too Delivery From Dubai To Abu Dhabi. Thanks!

  10. 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


Post a Comment