At this time, Jilt doesn't currently support adding shipment tracking details to Jilt emails. We've come up with some workarounds in the meantime, so read on to see if these may work for you!

Shopify merchants

We suggest including a link or button in your email that will direct your customer to the Order Status page. The order status page includes shipment tracking details, if provided. Customers don't have to be logged into their shop accounts to access this page.

For example, the Default Order Receipt template will include a button that says "View Order Status" and links to the order status page with the following merge tag: {{ order.status_url }}. That merge tag can be used on any placed order email in order to include a link to the order status page.

Learn more about the Shopify Order Status page.

This workaround doesn't work for WooCommerce shops, unfortunately, because the {{ order.status_url }} link directs the customer to the orders page in the My Account area of WooCommerce, which doesn't include tracking information.


WooCommerce merchants

This workaround is more advanced and depends on the shipment tracking plugin your shop is using. It may require that you have access to a developer to assist if you aren't comfortable adding custom code to your site. Don't worry though, we'll walk you through the process!

We have a snippet that can work for the following two tracking plugins:

  1. WooCommerce Shipment Tracking
  2. Advanced Shipment Tracking

Step 1: Add the code snippet to your site

If you aren't sure how to add custom code to your site, then we recommend you check out this guide from SkyVerge on how to safely add custom code to WordPress.

WooCommerce Shipment Tracking plugin

If you're using the WooCommerce Shipment Tracking plugin, you can use the following snippet as is to sync tracking details for newly completed orders to Jilt:

https://gist.githubusercontent.com/rjfrizz/b10bdd217cdba173676825131866d41c/raw/86e1d0b84366fb879f76f51730a49de258ad379d/jilt-wc-tracking-info.php

Advanced Shipment Tracking for WooCommerce plugin

If you're using the Advanced Shipment Tracking for WooCommerce plugin, then the following snippet can be used as is:

https://gist.githubusercontent.com/rjfrizz/97ca25de61a2a7f6541f1ac3d6c562a2/raw/3926eb5f76aecb4460e63d305cda2ae2531e5e12/advanced-shipping-tracking.php

Step 2: Apply the Liquid merge tag to your email template to display the tracking number

Now, you can apply the following Liquid merge tag to your email template to display the tracking number:

{% unless order.properties.tracking_code == null %} 
Tracking Number: {{ order.properties.tracking_code }}
{% endunless %}

If you'd like to take it a step further, you can include a link to the tracking information. To do so, you can highlight {{ order.properties.tracking_code }} to apply the link and enter {{ order.properties.tracking[0].formatted_tracking_link}} in the link field.

What if I'm using a different tracking plugin?

If this feature is something you'd like to see our team build into Jilt in the future, please get in touch and let us know!

Did this answer your question?