Before Getting Started:
When using the Malomo Shopify/Klaviyo integration, the following personalized data points can be used in the body of shipment-related emails that you send to your customers:
CUSTOMER INFORMATION
INFORMATION | EXAMPLE OUTPUT | EVENT VARIABLE |
---|---|---|
First Name | Mister | {{ event.extra.order.meta.shopify_order.customer.first_name }} |
Last Name | Rogers | {{ event.extra.order.meta.shopify_order.customer.last_name }} |
misterrogers@pbs.com | {{ event.extra.order.meta.shopify_order.customer.email }} | |
Phone Number | 123-456-7890 | {{ event.extra.order.meta.shopify_order.customer.phone }} |
DELIVERY INFORMATION
INFORMATION | EXAMPLE OUTPUT | EVENT VARIABLE |
---|---|---|
Estimated Delivery Date | September 19, 2021, 9PM | {{ event.estimated_delivery_date }} |
Actual Delivery Date | September 19, 2020 10 PM *(only available when delivered) | {{ event.delivered_at }} |
SHIPPING ADDRESS
INFORMATION | EXAMPLE OUTPUT | EVENT VARIABLE |
---|---|---|
Ship First Name | Mister | {{ event.extra.order.meta.shopify_order.shipping_address.first_name }} |
Ship Last Name | Rogers | {{ event.extra.order.meta.shopify_order.shipping_address.last_name }} |
Ship Company | Malomo | {{ event.extra.order.meta.shopify_order.shipping_address.company }} |
Ship Phone | 123-456-7890 | {{ event.extra.order.meta.shopify_order.shipping_address.phone }} |
Ship Address Line 1 | 123 Rogers Lane | {{ event.extra.order.meta.shopify_order.shipping_address.address1 }} |
Ship Address Line 2 | Apt. 305 | {{ event.extra.order.meta.shopify_order.shipping_address.address2 }} |
Ship City | Pittsburgh | {{ event.extra.order.meta.shopify_order.shipping_address.city }} |
Ship Province | Pennsylvania | {{ event.extra.order.meta.shopify_order.shipping_address.province }} |
Ship Province Code | PA | {{ event.extra.order.meta.shopify_order.shipping_address.province_code }} |
Ship Zip | 46205 | {{ event.extra.order.meta.shopify_order.shipping_address.zip }} |
Ship Country Code | US | {{ event.extra.order.meta.shopify_order.shipping_address.country_code }} |
Ship Country | United States | {{ event.extra.order.meta.shopify_order.shipping_address.country }} |
SHIPPING INFORMATION
INFORMATION | EXAMPLE OUTPUT | EVENT VARIABLE |
---|---|---|
Carrier Service | FedEx | {{ event.carrier_name }} |
Tracking Number | 99812911999333 | {{ event.tracking_code }} |
Tracking Link | "Track Package" button | {{ event.extra.order.url }} |
ORDER DETAILS
INFORMATION | EXAMPLE OUTPUT | EVENT VARIABLE |
---|---|---|
Order Number | 1012 | {{ event.extra.order.number }} |
Order Name | #1012 | {{ event.extra.order.meta.shopify_order.name }} |
Order Created at Date | July 2, 2019 5:16 PM | {{ event.extra.order.meta.shopify_order.created_at }} |
Order Note | This is a note from the Shopify order notes section. | {{ event.extra.order.meta.shopify_order.note }} |
Discount Codes | THANKYOU10 | {{ event.extra.order.meta.shopify_order.discount_codes }} |
Total Discount | 0.00 | {{ event.extra.order.meta.shopify_order.total_discounts }} |
Subtotal Price | 102.00 | {{ event.extra.order.meta.shopify_order.subtotal_price }} |
Tax Price | 7.14 | {{ event.extra.order.meta.shopify_order.tax_price }} |
Shipping Price | 2.13 | {{ event.extra.order.meta.shopify_order.shipping_price }} |
Total Price | 109.14 | {{ event.extra.order.meta.shopify_order.total_price }} |
Financial Status | PAID | {{ event.extra.order.meta.shopify_order.financial_status }} |
Total Paid | 109.14 | {{ event.extra.order.meta.shopify_order.total_price }} |
Cancelled on Date | July 1, 2019 11:03 PM | {{ event.extra.order.meta.shopify_order.cancelled_at }} |
Cancellation Reason | Refund | {{ event.extra.order.meta.shopify_order.cancel_reason }} |
Total Refunded | 56.76 | {{ event.extra.order.meta.shopify_order.total_refunded_amount }} |
LINE ITEMS
Each line item represents a product purchased by the customer who is receiving the email. You can choose to show either all the products a customer ordered or all the products for an individual shipment.
LINE ITEMS IN ORDER
We recommend using a dynamic table block in Klaviyo to show all products a customer ordered. To do this, configure the data source elements as:
Row collection: event.extra.order.meta.shopify_order.line_items Row alias: line_item
Next, you'll use these variables within your dynamic table block:
INFORMATION | EXAMPLE OUTPUT | EVENT VARIABLE |
---|---|---|
Item Title | Red Sweater | {{ line_item.title }} |
Item Quantity | 1 | {{ line_item.quantity }} |
Item Variant Title: | Long Sleeve | {{ line_item.variant.title }} |
Item Image | Shows image of product | {{ line_item.image.src }} |
Item Link | URL for PDP | {{ line_item.product.url }} |
Item Final Line Price | $102.00 | {{ line_item.final_line_price }} |
LINE ITEMS IN FULFILLMENT
We recommend using a static table block in Klaviyo to show all products in a customer's shipment. To do this, add the following code before the static product block:
{% with fulfillment=event.extra.order.meta.shopify_order.fulfillments|lookup:event.tracking_code %} {% for i in fulfillment.fulfillment_line_items %}
And add the following code after the static product block:
{% endfor %}{% endwith %}
Next, you'll use these variables within your static table block:
INFORMATION | EXAMPLE OUTPUT | EVENT VARIABLE |
---|---|---|
Item Title | Red Sweater | {{ i.line_item.title }} |
Item Quantity | 1 | {{ i.line_item.quantity }} |
Item Variant Title: | Long Sleeve | {{ i.line_item.variant.title }} |
Item Image | Shows image of product | {{ i.line_item.image.src }} |
Item Link | URL for PDP | {{ i.line_item.product.url }} |
Item Final Line Price | $102.00 | {{ i.line_item.final_line_price }} |
View our complete list of Klaviyo variables here.