Hello Magento Friends,

Today’s Magento 2 Tutorial is on How to Add Shipping Address Details in Order Grid in Magento 2.

Admin Order Grid in Magento 2 helps store admin to view order details, manage orders and create new orders. With Magento 2, the admin is able to customize the order grid according to the requirements. Sometimes, the admin needs shipping address details like street, city, Pincode, phone column in the order grid. Go ahead with the article to fulfill these requirements. Also checkout Magento Development Services to customize your requirement.

Here are the steps for How to Add Shipping Address Details in Order Grid in Magento 2

Steps to Add Shipping Address Details in Order Grid in Magento 2:

Step 1: First, we need to create a sales_order_grid.xml file inside our extension at the following path

app\code\Vendor\Extension\view\adminhtml\ui_component\

And add the code as mentioned below

Step 2: After that, we need to create a di.xml file inside the extension folder at the below-given path:

app\code\Vendor\Extension\etc\

Now, add the below code

Step 3: After that, we need to create the OrdersGrid.php file inside the below path folder to add the file to the module.

 app\code\Vendor\Extension\Plugin\

Now, add the below code

That’s it!

Once you have completed the above steps, check the results in the Magento 2 store backend. Shipping Address detail columns like Street, Zip code, City, Phone has been added in the order grid of Magento 2.

shipping details

Conclusion:

Hence, this way you can Add Shipping Address Details in Order Grid in Magento 2. If you face any issues, mention them in the comment box. I will be quick to solve it. Do share the articles with your fellow Magento developers. Stay in touch with us for more tutorials.

Happy Coding!

Click to rate this post!
[Total: 8 Average: 4.5]