✉️ Update the Shopify notification emails

Updated 2 hours ago by Austin Hutchison

Customizing your transactional emails is a great way to enhance the customer experience

✏️ Editing Shopify Emails

Checkout Shopify's official documentation

By default, Shopify will send several transactional emails to a customer during the lifecycle of an order.

  • Order Confirmation
  • Shipment Confirmation
  • Out for Delivery*
  • Delivered*

You can find these emails in the Shopify Admin > Settings > Notifications. Without any customization, these emails look like this:

*These emails can be disabled on any Shopify Account, learn more

You may want to update the link in several places

{% if fulfillment.tracking_numbers.size > 0 %}
<p class="disclaimer__subtext">
<br/>
{% 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 %}
</p>
{% endif %}

Create a variable to use in your email template

{% assign tracking_page = shop.url | append:'/apps/wonderment/tracking?search=' | append: order_name | replace:'#','' %}

Now use {{ tracking_page }} anywhere in the email template to link to the wonderment tracking page.

Anywhere you want to add a Wonderment link, add the following

{{shop.url}}/apps/wonderment/tracking?search={{ fulfillment.tracking_numbers.first }}

If you are using the App Block feature for themes compatible with Online Store 2.0, you will need to edit this URL to match the appropriate page handle

The link for a storefront tracking page should look something like

{%comment%} REPLACE 'tracking-page' with your page handle {% endcomment %}
{% assign tp_handle = 'tracking-page' %}
{% assign tracking_page = shop.url | append:'/pages/' | append: tp_handle | append:'?search=' | append: order_name | replace:'#','' %}


How did we do?