Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

The templates below can be used as a starting point for building Automation emails using Malomo shipping data. To use the templates below:

  1. Click Add Trigger

  2. Click the Sendlane tab to access the triggers you created as custom integration events

  3. Select a trigger

  4. Find the template below that corresponds to your trigger

  5. Copy and paste the text of a template below into a blank Automation email

  6. Edit the copy and style your email

⚠️ You must include the set data trigger

The first line of each email template includes the tag  {% set data = trigger.getCustomEventData() %} , which allows Malomo data to be pulled into your email. Without this snippet, none of your data will load, and contacts will receive mostly or entirely blank emails.

⚠️ You may need to strip text formatting when inserting the templates below into an automation email

When you paste one of the templates below into the email builder, it may try to create hyperlinks for some data. This will cause an error that says "Unexpected token "operator" of value "<". If you see any blue text after pasting, highlight all text and click the remove formatting icon. This should clear the error, and you should be able to save your email.

You can avoid this issue by pressing CMD + Shift + V on macOS or CTRL + Shift + V on Windows to paste without formatting.

Example Templates

Order Confirmation

 

Shipment Created

{% set data = trigger.getCustomEventData() %}

Your order is ready to go!
Order {{ data.order.meta.shopify_order.name }}

Hi {{ data.order.shipping_address.first_name | default('friend') }}, we've got great news. 

Your order has been packed by our warehouse, and is ready for pickup by {{ data.properties.carrier_name }}. We’ll let you know as soon as it starts to move.
Please note that it may take up to 24 hours for detailed tracking information to become available.

Tracking Number: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Please note, this shipment may not include all items from your order. Be on the lookout for another email from us regarding the rest of your order!
 
Shipping Address
{{ data.order.shipping_address.first_name }} {{ data.order.shipping_address.last_name }}
{{ data.order.shipping_address.address1 }}
{{ data.order.shipping_address.address2 }}
{{ data.order.shipping_address.city }}, {{ data.order.shipping_address.province_code }} {{ data.order.shipping_address.zip }} {{ data.order.shipping_address.country_code }}

Estimated Delivery Date
{{ data.properties.estimated_delivery_date |date('m/d/Y') | default('An estimated delivery date is not available at this time') }}

Shipment Details
{{ data.properties.carrier_name | upper }}: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Shipment First In Transit (Carrier Picked Up)

{% set data = trigger.getCustomEventData() %}

Your order is ready to go!
Order {{ data.order.meta.shopify_order.name }}

Hi {{ data.order.shipping_address.first_name | default('friend') }}, we've got great news. 

Your order has been packed by our warehouse, and is ready for pickup by {{ data.properties.carrier_name }}. We’ll let you know as soon as it starts to move.
Please note that it may take up to 24 hours for detailed tracking information to become available.

Tracking Number: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Please note, this shipment may not include all items from your order. Be on the lookout for another email from us regarding the rest of your order!
 
Shipping Address
{{ data.order.shipping_address.first_name }} {{ data.order.shipping_address.last_name }}
{{ data.order.shipping_address.address1 }}
{{ data.order.shipping_address.address2 }}
{{ data.order.shipping_address.city }}, {{ data.order.shipping_address.province_code }} {{ data.order.shipping_address.zip }} {{ data.order.shipping_address.country_code }}

Estimated Delivery Date
{{ data.properties.estimated_delivery_date |date('m/d/Y') | default('An estimated delivery date is not available at this time') }}

Shipment Details
{{ data.properties.carrier_name | upper }}: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Out for Delivery

{% set data = trigger.getCustomEventData() %}

Your order is ready to go!
Order {{ data.order.meta.shopify_order.name }}

Hi {{ data.order.shipping_address.first_name | default('friend') }}, we've got great news. 

Your order has been packed by our warehouse, and is ready for pickup by {{ data.properties.carrier_name }}. We’ll let you know as soon as it starts to move.
Please note that it may take up to 24 hours for detailed tracking information to become available.

Tracking Number: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Please note, this shipment may not include all items from your order. Be on the lookout for another email from us regarding the rest of your order!
 
Shipping Address
{{ data.order.shipping_address.first_name }} {{ data.order.shipping_address.last_name }}
{{ data.order.shipping_address.address1 }}
{{ data.order.shipping_address.address2 }}
{{ data.order.shipping_address.city }}, {{ data.order.shipping_address.province_code }} {{ data.order.shipping_address.zip }} {{ data.order.shipping_address.country_code }}

Estimated Delivery Date
{{ data.properties.estimated_delivery_date |date('m/d/Y') | default('An estimated delivery date is not available at this time') }}

Shipment Details
{{ data.properties.carrier_name | upper }}: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Attempted Delivery

{% set data = trigger.getCustomEventData() %}

Your order is ready to go!
Order {{ data.order.meta.shopify_order.name }}

Hi {{ data.order.shipping_address.first_name | default('friend') }}, we've got great news. 

Your order has been packed by our warehouse, and is ready for pickup by {{ data.properties.carrier_name }}. We’ll let you know as soon as it starts to move.
Please note that it may take up to 24 hours for detailed tracking information to become available.

Tracking Number: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Please note, this shipment may not include all items from your order. Be on the lookout for another email from us regarding the rest of your order!
 
Shipping Address
{{ data.order.shipping_address.first_name }} {{ data.order.shipping_address.last_name }}
{{ data.order.shipping_address.address1 }}
{{ data.order.shipping_address.address2 }}
{{ data.order.shipping_address.city }}, {{ data.order.shipping_address.province_code }} {{ data.order.shipping_address.zip }} {{ data.order.shipping_address.country_code }}

Estimated Delivery Date
{{ data.properties.estimated_delivery_date |date('m/d/Y') | default('An estimated delivery date is not available at this time') }}

Shipment Details
{{ data.properties.carrier_name | upper }}: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Delivered

{% set data = trigger.getCustomEventData() %}

Your order is ready to go!
Order {{ data.order.meta.shopify_order.name }}

Hi {{ data.order.shipping_address.first_name | default('friend') }}, we've got great news. 

Your order has been packed by our warehouse, and is ready for pickup by {{ data.properties.carrier_name }}. We’ll let you know as soon as it starts to move.
Please note that it may take up to 24 hours for detailed tracking information to become available.

Tracking Number: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Please note, this shipment may not include all items from your order. Be on the lookout for another email from us regarding the rest of your order!
 
Shipping Address
{{ data.order.shipping_address.first_name }} {{ data.order.shipping_address.last_name }}
{{ data.order.shipping_address.address1 }}
{{ data.order.shipping_address.address2 }}
{{ data.order.shipping_address.city }}, {{ data.order.shipping_address.province_code }} {{ data.order.shipping_address.zip }} {{ data.order.shipping_address.country_code }}

Estimated Delivery Date
{{ data.properties.estimated_delivery_date |date('m/d/Y') | default('An estimated delivery date is not available at this time') }}

Shipment Details
{{ data.properties.carrier_name | upper }}: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Available for Pickup

{% set data = trigger.getCustomEventData() %}

Your order is ready to go!
Order {{ data.order.meta.shopify_order.name }}

Hi {{ data.order.shipping_address.first_name | default('friend') }}, we've got great news. 

Your order has been packed by our warehouse, and is ready for pickup by {{ data.properties.carrier_name }}. We’ll let you know as soon as it starts to move.
Please note that it may take up to 24 hours for detailed tracking information to become available.

Tracking Number: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Please note, this shipment may not include all items from your order. Be on the lookout for another email from us regarding the rest of your order!
 
Shipping Address
{{ data.order.shipping_address.first_name }} {{ data.order.shipping_address.last_name }}
{{ data.order.shipping_address.address1 }}
{{ data.order.shipping_address.address2 }}
{{ data.order.shipping_address.city }}, {{ data.order.shipping_address.province_code }} {{ data.order.shipping_address.zip }} {{ data.order.shipping_address.country_code }}

Estimated Delivery Date
{{ data.properties.estimated_delivery_date |date('m/d/Y') | default('An estimated delivery date is not available at this time') }}

Shipment Details
{{ data.properties.carrier_name | upper }}: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Return to Sender

{% set data = trigger.getCustomEventData() %}

Your order is ready to go!
Order {{ data.order.meta.shopify_order.name }}

Hi {{ data.order.shipping_address.first_name | default('friend') }}, we've got great news. 

Your order has been packed by our warehouse, and is ready for pickup by {{ data.properties.carrier_name }}. We’ll let you know as soon as it starts to move.
Please note that it may take up to 24 hours for detailed tracking information to become available.

Tracking Number: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>

Please note, this shipment may not include all items from your order. Be on the lookout for another email from us regarding the rest of your order!

Shipment Details
{{ data.properties.carrier_name | upper }}: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a>
  • No labels