...
If you're using Shopify's notifications for events like Shipment Confirmed, Out for Delivery, or Delivered, you can include a link to your tracking page instead of the default order status link from Shopify.
...
Edit the Shopify notifications with the code below to change where you direct your customers. The code below will not change the look or functionality of the message; it will only direct customers to the tracking page, instead of the carrier's tracking page.
...
Code Block |
---|
{% comment %} START MALOMO {% endcomment %} {% comment %} Base URL for Malomo tracking page, e.g. "https://example.mymalomo.com" {% endcomment %} {% assign malomo_base_url = "ADD_BASE_URL_HERE" %} {% if fulfillment.tracking_company %} {% capture carrier %}{{ fulfillment.tracking_company }}{% endcapture %} {% endif %} {% if carrier and carrier != blank and carrier != "Other" %} {% capture tracking_url %}{{ malomo_base_url }}/?_m_alt_id={{ order.id }}&_m_tracking_code={{ fulfillment.tracking_numbers.first }}{% endcapture %} {% elsif order_status_url %} {% capture tracking_url %}{{ order_status_url }}{% endcapture %} {% endif %} {% comment %} END MALOMO {% endcomment %} |
3. Replace the example red base URL (https://yourbrand.com/pages/order-tracking
in the HTML above) with your actual base URL.
...