Coding a Shopify Email Template for Package Tracking

Hello,

I need to modify my tracking email template that is sent out to customers when they purchase a product of mine. I want it to hyperlink to https://global.cainiao.com/detail.htm?mailNoList= with the tracking number attached at the end of the “=” so that the customer is taken directly to the tracking page, but I have no idea how to code it. Thanks!

Code:

Package Tracking: {{ fulfillment.tracking_number }}
{% elsif fulfillment.tracking_number %}
Package Tracking:
{{ fulfillment.tracking_number }}

Current Look:

Hey @Selvence ,

You can do it like this:

Package Tracking: [{{ fulfillment.tracking_number }}](https://global.cainiao.com/detail.htm?mailNoList={{ fulfillment.tracking_number }})
1 Like

Hello! Thank you for the code. Just a question on the tracking codes that are updated for each product. Does that code recognize different tracking numbers? I ship with various suppliers, and sometimes a single order can consist of 3 products from 3 different suppliers.