The templates below can be used as a starting point for building Automation emails using Malomo shipping data. To use the templates below:
Click Add Trigger
Click the Sendlane tab to access the triggers you created as custom integration events
Select a trigger
Find the template below that corresponds to your triggerNew Automation.
Select Start From Scratch and name the automation.
Click + Add trigger.
Select the Custom tab
Click Custom Event
Select Malomo Custom Integration in the Store dropdown.
Select No Limit in the Limit Per Contact dropdown.
Select the desired Malomo event in the Event dropdown. See here for a list of available Malomo Event Triggers.
Click Done.
Copy and paste the text of a template below into a blank Automation email.
Edit the copy and style your email.
Note |
---|
...
You Must Add a Set Data Trigger Tag The first line of each email template includes the tag |
...
Note |
---|
Strip Text Formatting When Inserting Variables and Templates 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 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
Code Block |
---|
{% set data = trigger.getCustomEventData() %} Your order is confirmed! Order {{ data.order.meta.shopify_order.name }} Hi {{ data.customer.first_name | default('friend') }}, thank you for shopping with us! Your order is confirmed. Our team is working on your shipment and we'll email you again when your items are packed and ready to go. Order Summary {% for item in data.properties.line_items %} {% set image_url = item.product_image_url %} {{ item.product_title }} Quantity: {{ item.current_quantity }} {% if item.variant_title is defined and item.variant_title is not null %}- {{ item.variant_title }} {% endif %} Price and we'll email you again when your items are packed and ready to go. Order Summary {% for item in data.order.meta.shopify_order.line_items %} <img src="{{ item.image.src }}" alt="{{ item.title }}"> Quantity: {{ item.final_line_price.amountcurrent_quantity }} Price: {{ item.final_line_price.currency }} {% endfor %} Billing Address {{ data.order.meta.shopify_order.billing_address.first_name }} {{ data.order.meta.shopify_order.billing_address.last_name }} {{ data.order.meta.shopify_order.billing_address.address1 }} {{ data.order.meta.shopify_order.billing_address.address2 }} {{ data.order.meta.shopify_order.billing_address.city }}, {{ data.order.meta.shopify_order.billing_address.province_code }} {{ data.order.meta.shopify_order.billing_address.zip }} {{ data.order.meta.shopify_order.billing_address.country_code }} 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 }} |
...
Code Block |
---|
{% 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!code }}</a> 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.address1city }}, {{ data.order.shipping_address.province_code }} {{ data.order.shipping_address.address2zip }} {{ data.order.shipping_address.citycountry_code }}, Estimated Delivery Date {{ data.orderproperties.shippingestimated_address.province_codedelivery_date |date('m/d/Y') | default('An estimated delivery date is not available at this time') }} {{ data.order.shipping_address.zip }} Shipment Details {{ data.orderproperties.shipping_address.country_codecarrier_name | upper }}: Estimated Delivery Date <a href="{{ 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 hreforder.url }}">{{ data.properties.tracking_code }}</a> Order Summary {% for item in data.order.meta.shopify_order.line_items %} <img src="{{ item.image.src }}" alt="{{ dataitem.order.urltitle }}"> Quantity: {{ data.properties.tracking_code }}</a>item.current_quantity }} Price: {{ item.final_line_price }} {% endfor %} |
Shipment First In Transit (Carrier Picked Up)
Code Block |
---|
{% set data = trigger.getCustomEventData() %} Your order is now on the way to you! Order {{ data.order.meta.shopify_order.name }} Hi {{ data.order.shipping_address.first_name | default('friend') }}, your package is on the move. We’ll send you another email when your order is out for delivery with {{ data.properties.carrier_name }}. 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!/a> 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> |
...
Code Block |
---|
{% set data = trigger.getCustomEventData() %} Your order is our for delivery! Order {{ data.order.meta.shopify_order.name }} Your package is now out for delivery with and it will be dropped off later today. We’ll update you as soon as it has arrived. 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!/a> 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> |
...
Code Block |
---|
{% set data = trigger.getCustomEventData() %} Failed Delivery Attempt Order {{ data.order.meta.shopify_order.name }} Looks like {{ data.properties.carrier_name }} has attempted to deliver the package without success. Please continue to check the tracking page for updates, and be on the lookout for another notification from us once the package is delivered. 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!/a> 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> |
...
Code Block |
---|
{% set data = trigger.getCustomEventData() %}
Your order was delivered by {{ data.properties.carrier_name }}!
Order {{ data.order.meta.shopify_order.name }}
Don’t see your package? Occasionally, carriers mark a package delivered before physically dropping it off. If you don’t receive your order within 24 hours or have any questions, please reply to this email and we’ll be happy to give you a hand.
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 }}
Delivery Date
{{ data.properties.tracker_delivered_at |date('m/d/Y') }}
Shipment Details
{{ data.properties.carrier_name | upper }}: <a href="{{ data.order.url }}">{{ data.properties.tracking_code }}</a> |
...