Skip to main content

Pre-written Liquid Snippets

To simplify the process, ready‑to‑use Liquid examples are provided for you to copy, paste, and adapt as needed. You can also modify the wording as needed.

Communication according to carrier

General structure

{% if carrier.code == "Carrier name 1" %} TEXT 1
{% elsif carrier.code =="Carrier name 2" %} TEXT 2
{% elsif carrier.code =="Carrier name 3" %} TEXT 3
{% endif %}

Message for a single carrier concerned

Hello, {{ order.first_name }} ! {{ carrier.name }} has just informed us that your package {{ tracker.tracking_number }} corresponding to the order {{ order.order_number }} has been delivered. <br/> <br/> {% if carrier.code =="chronopost" %} <br><br>PS : If you have ordered more than 6 items, you may receive your order in several packages. You will then receive a new delivery tracking email. Please wait a few days, and thanks for your understanding. {% endif %}

Different messages for each of the carriers concerned

Hello {{ order.first_name }}, <br> <br> We have been informed that {{ carrier.name }} could not deliver your package due to <b> a problem with your address </b>. We therefore invite you to <b> contact the carrier </b> to modify your contact details. <br> <br> {% if carrier.code =="colissimo" %} To contact {{carrier.name}}, please call <b> 1234 </b>. If it is a delivery outside the UK, please call <b> 0 123 456 789 <b>. You may also want to check out the <a href="{{tracker.tracking_link }}"> tracking page {{carrier.name}} </a>. {% endif %} {% if carrier.code =="ups" %} To contact {{ carrier.name }}, please call <b>11 22</b>. You may also want to check out the <a href="{{ tracker.tracking_link }}">tracking page{{ carrier.name }}</a>. {% endif %}


Communication based on an e-mail address

{% if order.email contains "marketplace_name" %} Good news, your {{ shop.name }} package has been taken care of by the seller. If you have any questions, please contact the seller directly. <br> Thanks for your cooperation. {% else %} Good news {{ order.first_name }} ! Your {{ shop.name }} package has been taken over by {{ carrier.name }}. {% endif %}<br><br>


Communication for multi-package orders

Package dispatched
Note

Here, the formula {% if order.tracker_count > 1 %} means that the following condition is entered: There are several tracker numbers.

{% if order.tracker_count > 1 %} Dear {{ order.first_name }}, <br><br> {{ carrier.name }} has just taken over part of your {{ shop.name }} order to get it to you as quickly as possible. <br><br> Important: This order is scheduled for delivery in {{ order.tracker_count }} packages. You can check the overall status of your order at the link below, where you can see all updates and track each shipment. <br><br> {% else %} Dear {{ order.first_name }}, <br><br> {{ carrier.name }} has just taken over your {{ shop.name }} order to get it to you as quickly as possible. Hey {{ shop.name }}, how soon can I try on my purchases? <br> We know how excited you are to get your order: on average, it takes 2 working days (excluding weekends and public holidays) before you can try it on!<br> <br> Keep track of your package at all times!<br><br> {% endif %}

Package delivered
Note

Here, the formula {% if order.tracker_count > 1 and tracker.order_delivery_rank==order.tracker_count %} means that the following condition is met: There are several tracking numbers (tracker = tracking number) and this package is the last one delivered, so I trigger a specific message.

{% if order.tracker_count > 1 and tracker.order_delivery_rank==order.tracker_count %} Dear {{ order.first_name }}, <br><br> {{ carrier.name }} has just informed us that the last package of your {{shop.name}} order has been delivered...we can't wait to hear what you think!<br> Want to share your unboxing experience with us? Tag us on social networks! <br><br> {% else%} Dear {{ order.first_name }}, <br><br> {{ carrier.name }} has just informed us that your {{ shop.name }} package has been delivered...we can't wait to hear what you think!<br> Want to share your unboxing experience with us? Tag us on social networks! <br><br> As a reminder, you can check the overall status of your order from your {{ shop.name }} account. where you can view all updates and track each shipment. {% endif%}


Note

The <br> is not Liquid but HTML. You can find more about it in the HTML reference.