Show the chosen date/time on the Fulfillment Request notification
This document explains how to make the chosen date/time visible in the Fulfillment Request notification.
Follow the steps below to use the Shipping confirmation email to show your customers the information they have chosen for their delivery.
- In your shop's admin page, go to Notifications;
- Go to Fulfillment request notification
- Click on Edit code (top right corner)
- In Email body (HTML) insert the following code snippets as advised below.
These steps will only work if the calendar is on the product page.
In the liquid template code, look for the following line of code (it should be around line 12):
<p>Vendor: {{ line.line_item.vendor }}</p>
Insert the following code snippet just under that line before the {% endfor %}
tag:
{% assign tag_names = "Method,Delivery Date,Delivery Time,Pickup Date,Pickup Time" | split: "," %} {% for tag_name in tag_names %} {% if line.line_item.properties[tag_name] %} <p>{{ tag_name }}: {{ line.line_item.properties[tag_name] }}</p> {% endif %} {% endfor %}
For this example, it should look like this. The snippet is pasted in lines 15-20:
Important: make sure to modify the first line to list all the possible attribute names you want to display. They need to be the exact same values that you've set in the app's Settings > Texts and Languages.
The values are defined in "Messages":
- Method tag label - Default value: Method
- Order tag date label (if applicable, check the value for both "Local delivery" and "Store pickup") - Default value: Delivery Date / Pickup Date
- Order tag time slot label (if applicable, check the value for both "Local delivery" and "Store pickup") - Default value: Delivery Time / Pickup Time
If you have multiple languages set up, include the tag for each one. Make sure each tag label is separated with a comma, without any extra spaces. For example:
{% assign tag_names = "Method,Local Delivery Date,Time Slot,Store Pickup Date,Time Slot" | split: "," %}
Note that the changes won’t be reflected in the preview or test email. You’ll want to test it with a real Fulfillment Request notification.