Add AfterShip Tracking Link to Shopify Shipping Notifications
AfterShip branded tracking page URL can be sent as a part of Shopify shipping confirmation and update notification emails. Also, you can disable additional delivery updates.
Go to your Shopify store > Settings> Notifications> Shipping confirmation (or Shipping update)
Search for the below-mentioned code in the HTML body
Replace it with the below code snippet
Replace track.aftership.com with your AfterShip tracking page URL
Preview the email, click on the tracking number to view the tracking page
Save the change
Go to your Shopify store > Settings > Notifications, disable emails
🔧 Update Shipping notification templates
Go to your Shopify store > Settings> Notifications> Shipping confirmation (or Shipping update)
Search for the below-mentioned code in the HTML body
{% if fulfillment.tracking_numbers.size == 1 and fulfillment.tracking_company and fulfillment.tracking_url %}{{ fulfillment.tracking_company }}
tracking number: <a href="{{ fulfillment.tracking_url }}">{{ fulfillment.tracking_numbers.first }}
</a>
{% elsif fulfillment.tracking_numbers.size == 1 %}
Tracking number: {{ fulfillment.tracking_numbers.first }}
{% else %}
Tracking numbers:<br />
{% for tracking_number in fulfillment.tracking_numbers %}
{{ tracking_number }}<br />
{% endfor %}
{% endif %}
Replace it with the below code snippet
{% if fulfillment.tracking_numbers.size == 1 and fulfillment.tracking_company and fulfillment.tracking_url %}
{{ fulfillment.tracking_company }} tracking number: <a href= http://track.aftership.com/{{ fulfillment.tracking_numbers.first }}>{{ fulfillment.tracking_numbers.first }}</a>
{% elsif fulfillment.tracking_numbers.size == 1 %}
Tracking number: <a href= http://track.aftership.com/{{ fulfillment.tracking_numbers.first }}>{{ fulfillment.tracking_numbers.first }}
{% else %}
Tracking numbers:<br />
{% for tracking_number in fulfillment.tracking_numbers %}
<a href= http://track.aftership.com/{{ tracking_number }}>{{ tracking_number }}<br />
{% endfor %}
{% endif %}
Replace track.aftership.com with your AfterShip tracking page URL
Preview the email, click on the tracking number to view the tracking page
Save the change
⛔ Disable delivery updates
Go to your Shopify store > Settings > Notifications, disable emails
Updated on: 07/10/2022
Thank you!