Hello Magento Friends 👋,

Welcome back to Magento Technical Blog series. Today I will throw light on Magento 2: Add Track Order link with the Order on Order History Page. Look at what our previous blog has to say, How to add Stock Status column in Admin Product Grid Magento 2.

As soon as the customer places an order, he/she is eager to know about when their products will arrive. An order tracking process allows the customer to know the status of their orders like pending, processing, shipped, delivered. My orders section displays the order information that comprises information like the order number, date, amount, status, etc. What if you want to provide an order tracking link to the customers of your Magento 2 store into their My Orders page?

Let us know How to Add Track Order link with the Order on Order History Page in Magento 2 🚀

How to Add Track Order link with the Order on Order History Page in Magento 2:

Copy the vendor/magento/module-sales/view/frontend/templates/order/history.phtml file in your theme under the below path:

app/design/frontend/Themes/Yourtheme/Magento_Sales/templates/order/history.phtml 

Now, add the below code:

 Flush the cache after the changes. That’s it.

With the implementation of the above code, the track order column link will be added to the order home page as shown below:

track-order

Conclusion:

Expectantly, all are able to Add Track Order link with the Order on Order History Page in Magento 2. Apart from this, increase the customer experience of your store with Order Tracking Extension for Magento 2, which enables tracking order directly from the customer’s My Account section.

In case of any issues while implementing the code, notify me in the comment section below. Do share the article with your Magento colleagues and friends. Keep in touch for more such solutions.

Happy Coding 😊

[Total: 2   Average: 5/5]