How to add Custom Shipping Carrier Tracker in Magento 2?

Shipping is one of the crucial features that any ecommerce can boast. Magento 2 out of the box supports a variety of shipping methods and shipping carriers for you and your customers to choose from. However, there are tons of popular shipping providers out there, you need to incorporate some of them in order to stay ahead of the competition. Aside from shipping carriers Magento 2 is also limited when it comes to tracking shipments. It only supports tracking for a limited number of shipping carriers. Custom shipping carrier tracker for Magento 2 enables you to add custom carriers to the store with ease. These carriers can be selected/assigned to an order when creating a shipment. It also adds tracking links to your shipments, shipment emails, as well as on the frontend for customers to easily track their shipments. 

Add Custom Shipping Carrier Tracker in Magento 2

Please follow the steps below to add shipping carrier tracker in Magento 2:-

Step 1:- Go to Admin>Stores>Configuration>Scommerce Configuration> Tracking Link >Shipping Methods. Here we will add our carrier tracker URL which accepts the tracking number as the URL parameter. 

Step 2:- Click on Add Shipping Method and enter the name of the shipping method and the tracking URL.

Custom Shipping Carrier Tracker in Magento 2: add shipping carrier

Step 3:- For eg:- Enter the name as ‘DPD Local’ and enter the tracking URL which accepts reference number as parameter.

http://www.dpd.co.uk/apps/tracking/?reference={number}

Our module will automatically replace the number variable with the tracking number from the order.

Custom Shipping Carrier Tracker in Magento 2: add shipping

Step 4:- In the additional carriers, click on Add Carrier and enter the carrier name as ‘DPD Local’. This will be available in the carrier’s dropdown list while adding tracking numbers in the order.

Custom Shipping Carrier Tracker in Magento 2: add carrier

Step 5:- Now, go to Sales>Orders and create shipping for an order. Click on ‘Add Tracking Number’ under shipping information.

Custom Shipping Carrier Tracker in Magento 2: add tracking number

Step 6:- In the carrier dropdown list select ‘DPD local’ it will automatically add the carrier title.

Custom Shipping Carrier Tracker in Magento 2: select carrier

Step 7:- Finally enter the tracking number and create the shipment.

Custom Shipping Carrier Tracker in Magento 2: enter tracking number

Shipment Tracking for Admin

Admin of stores can utilize the Custom shipping carrier tracker for Magento 2 to track shipments on their end as well. Please follow the steps below:-

  • Navigate to Sales>Orders grid and find the order for which shipment was created. Click on the order then from the left grid select shipments. 
Custom Shipping Carrier Tracker in Magento 2: shipments
  • Click on view shipment then scroll down to find shipping and tracking information. Admin can click on the track shipment link or the tracking number in order to track the shipment.
Custom Shipping Carrier Tracker in Magento 2: shipment tracking links
  • As soon as any of the link is clicked it will take you to the shipment carriers site with the tracking number where you can track the shipment.
Custom Shipping Carrier Tracker in Magento 2: shipment tracking

Shipment Tracking For Customers

Customers can track the shipment using either the shipment email or from the My Account section. As soon as the shipment is created with the tracking number the customer should receive an email for the same. This email will contain the tracking number which customers can click to track their shipment.

Custom Shipping Carrier Tracker in Magento 2: Shipment Email

Please follow the steps below to track shipment from My Account section.

  • Login to your account and go to My Account section then from the left grid go to My Orders. 
Custom Shipping Carrier Tracker in Magento 2: Order shipment
  • Click on order shipments, here you should see the tracking number which can be clicked to track the shipment.
Custom Shipping Carrier Tracker in Magento 2: frontned tracking

Conclusion

Custom shipping carrier tracker for Magento 2 automates the tracking process by automatically creating links with tracking numbers and then displaying it for both admin and customers. This can reduce the time and the extra effort to track shipments henceforth enhancing the overall user experience of the customer. You can check the demo for this module and test for yourself:-

Frontend Demo

Backend Demo

Discover more from WHO WILL CARE eCommerce

Subscribe now to keep reading and get access to the full archive.

Continue reading