Hello,
Per my question on https://community.shopify.com/c/technical-q-a/coding-a-shopify-email-template-for-package-tracking/m-p/1691752#M98977 , I also need to update my shipping notification template for when the tracking number updates and another email is sent out to the customer.
Currently, the notification looks like this:
How do I get the email to not say UPS and the tracking number, but rather “Package Tracking: and then the tracking number from the order” with the customer being able to hyperlink to to https://global.cainiao.com/detail.htm?mailNoList= and the tracking number attached to the url?
Here is the code for the template right now:
{% endif %}
{% if fulfillment.tracking_numbers.size > 0 %}
{% if fulfillment.tracking_numbers.size == 1 and fulfillment.tracking_company and fulfillment.tracking_url %}
{{ fulfillment.tracking_company }} tracking number: {{ fulfillment.tracking_numbers.first }}
{% elsif fulfillment.tracking_numbers.size == 1 %}
Tracking number: {{ fulfillment.tracking_numbers.first }}
{% else %}
Tracking numbers:
{% for tracking_number in fulfillment.tracking_numbers %}
{{ tracking_number }}
{% endfor %}

