When creating email templates, variables can be used to add dynamic content about the order/shipment.
Text template blocks use Liquid templating which should be familiar for users of Shopify. For more information see the documentation.
Common Variables
Variable Name | Example |
|
{{ recipientName }} | Jane Smith |
|
{{ recipientFirstName }} | Jane |
|
{{ recipientLastName }} | Smith |
|
{{ recipientEmail }} | Can be empty | |
{{ recipientPhone }} | +447700900077 |
|
{{ recipientAddress }} | Buckingham Palace, London, SW1A 1AA |
|
{{ senderName }} | Merchant Name |
|
{{ carrierCode }} | packfleet dpd evri |
|
{{ carrierName }} | Packfleet DPD UK |
|
{{ trackingNumber }} | tracking-phrase 123456789 |
|
{{ trackingURL }} | Your configured tracking page, this will either be on the Packfleet site or based on whatever tracking URL format you have configured | |
{{ externalTrackingURL }} | The tracking page used by the carrier that is delivering the shipment | |
{{ orderNumber }} | Store order number | May be empty or contain different data depending on how shipments are imported into Packfleet |
{{ externalId }} | Store order ID | May be empty or contain different data depending on how shipments are imported into Packfleet |
{{ orderDate }} | Saturday, Sept 30th |
|
{{ deliveryDate }} | Saturday, Sept 30th Tomorrow Soon | May be empty if no estimate is available |
Out For Delivery
Variable Name | Example |
|
{{ recipientName }} | Jane Smith |
|
{{ driverName }} | Ansel Elgort |
|
{{ timeWindowStart }} | 12:00 | May be empty |
{{ timeWindowEnd }} | 14:00 | May be empty |
{{ timeWindow }} | between 07:30 and 22:00 | May be empty |
Delivery Delayed
Variable Name | Example |
|
{{ delayReason }} | Delay Local Delay | High level reason for delay |
{{ carrierMessage }} | Delay (Customer not available or business closed.)
Operational Delay (Incorrect Address) | More detailed information about delay as reported by carrier Optional |
Delivery Completed
Variable Name | Example |
|
{{ notes }} | Note from delivery driver |
|
{{ proofOfDeliveryImageURL }} |
| |
{{ timeWindowStart }} | 12:00 | May be empty |
{{ timeWindowEnd }} | 14:00 | May be empty |
{{ timeWindow }} | between 07:30 and 22:00 | May be empty |