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.

🔧 Update Shipping notification templates

  1. Go to your Shopify store> Settings> Notifications> Shipping confirmation (or Shipping update)
  2. 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: {{ 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 %}
    {% endif %}
  3.  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 %}
  4. Replace track.aftership.com with your AfterShip tracking page URL
  5. Preview the email, click on the tracking number to view the tracking page  
  6. Save the change

⛔ Disable delivery updates

  1. Go to your Shopify storeSettings> Notifications, disable emails

 

Was this article helpful?
0 out of 0 found this helpful