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
CODE
{{ event.extra.order.meta.shopify_order.customer.first_name }}
CODE

Last Name

Rogers
CODE
{{ event.extra.order.meta.shopify_order.customer.last_name }}
CODE

Email

misterrogers@pbs.com
CODE
{{ event.extra.order.meta.shopify_order.customer.email }}
CODE

Phone Number

123-456-7890
CODE
{{ event.extra.order.meta.shopify_order.customer.phone }}
CODE

 

DELIVERY INFORMATION

INFORMATION

EXAMPLE OUTPUT 

EVENT VARIABLE

Estimated Delivery Date

September 19, 2021, 9PM
CODE
{{ event.estimated_delivery_date }}
CODE

Actual Delivery Date

September 19, 2020 10 PM 
*(only available when delivered)
CODE
{{ event.delivered_at }}
CODE

 

SHIPPING ADDRESS

INFORMATION

EXAMPLE OUTPUT 

EVENT VARIABLE

Ship First Name

Mister
CODE
{{ event.extra.order.meta.shopify_order.shipping_address.first_name }}
CODE

Ship Last Name

Rogers
CODE
{{ event.extra.order.meta.shopify_order.shipping_address.last_name }}
CODE

Ship Company

Malomo
CODE
{{ event.extra.order.meta.shopify_order.shipping_address.company }}
CODE

Ship Phone

123-456-7890
CODE
{{ event.extra.order.meta.shopify_order.shipping_address.phone }}
CODE

Ship Address Line 1

123 Rogers Lane
CODE
{{ event.extra.order.meta.shopify_order.shipping_address.address1 }}
CODE

Ship Address Line 2

Apt. 305
CODE
{{ event.extra.order.meta.shopify_order.shipping_address.address2 }}
CODE

Ship City

Pittsburgh
CODE
{{ event.extra.order.meta.shopify_order.shipping_address.city }}
CODE

Ship Province

Pennsylvania
CODE
{{ event.extra.order.meta.shopify_order.shipping_address.province }}
CODE

Ship Province Code

PA
CODE
{{ event.extra.order.meta.shopify_order.shipping_address.province_code }}
CODE

Ship Zip

46205
CODE
{{ event.extra.order.meta.shopify_order.shipping_address.zip }}
CODE

Ship Country Code

US
CODE
{{ event.extra.order.meta.shopify_order.shipping_address.country_code }}
CODE

Ship Country

United States
CODE
{{ event.extra.order.meta.shopify_order.shipping_address.country }}
CODE

 

SHIPPING INFORMATION

INFORMATION

EXAMPLE OUTPUT 

EVENT VARIABLE

Carrier Service

FedEx
CODE
{{ event.carrier_name }}
CODE

Tracking Number

99812911999333
CODE
{{ event.tracking_code }}
CODE

Tracking Link

"Track Package" button
CODE
{{ event.extra.order.url }}
CODE

 

ORDER DETAILS

INFORMATION

EXAMPLE OUTPUT 

EVENT VARIABLE

Order Number

1012
CODE
{{ event.extra.order.number }}
CODE

Order Name

#1012
CODE
{{ event.extra.order.meta.shopify_order.name }}
CODE

Order Created at Date

July 2, 2019 5:16 PM
CODE
{{ event.extra.order.meta.shopify_order.created_at }}
CODE

Order Note

This is a note from the 
Shopify order notes section.
CODE
{{ event.extra.order.meta.shopify_order.note }}
CODE

Discount Codes

THANKYOU10
CODE
{{ event.extra.order.meta.shopify_order.discount_codes }}
CODE

Total Discount

0.00
CODE
{{ event.extra.order.meta.shopify_order.total_discounts }}
CODE

Subtotal Price

102.00
CODE
{{ event.extra.order.meta.shopify_order.subtotal_price }}
CODE

Tax Price

7.14
CODE
{{ event.extra.order.meta.shopify_order.tax_price }}
CODE

Shipping Price

2.13
CODE
{{ event.extra.order.meta.shopify_order.shipping_price }}
CODE

Total Price

109.14
CODE
{{ event.extra.order.meta.shopify_order.total_price }}
CODE

Financial Status

PAID
CODE
{{ event.extra.order.meta.shopify_order.financial_status }}
CODE

Total Paid

109.14
CODE
{{ event.extra.order.meta.shopify_order.total_price }}
CODE

Cancelled on Date

July 1, 2019 11:03 PM
CODE
{{ event.extra.order.meta.shopify_order.cancelled_at }}
CODE

Cancellation Reason

Refund
CODE
{{ event.extra.order.meta.shopify_order.cancel_reason }}
CODE

Total Refunded

56.76
CODE
{{ event.extra.order.meta.shopify_order.total_refunded_amount }}
CODE

 

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
CODE

 

Next, you'll use these variables within your dynamic table block: 

INFORMATION

EXAMPLE OUTPUT 

EVENT VARIABLE

Item Title

Red Sweater
CODE
{{ line_item.title }}
CODE

Item Quantity

1
CODE
{{ line_item.quantity }}
CODE

Item Variant Title:

Long Sleeve
CODE
{{ line_item.variant.title }}
CODE

Item Image

Shows image of product
CODE
{{ line_item.image.src }}
CODE

Item Link

URL for PDP
CODE
{{ line_item.product.url }}
CODE

Item Final Line Price

$102.00
CODE
{{ line_item.final_line_price }}
CODE

 

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 %}
CODE

And add the following code after the static product block: 

{% endfor %}{% endwith %}
CODE

 

Next, you'll use these variables within your static table block: 

INFORMATION

EXAMPLE OUTPUT 

EVENT VARIABLE

Item Title

Red Sweater
CODE
{{ i.line_item.title }}
CODE

Item Quantity

1
CODE
{{ i.line_item.quantity }}
CODE

Item Variant Title:

Long Sleeve
CODE
{{ i.line_item.variant.title }}
CODE

Item Image

Shows image of product
CODE
{{ i.line_item.image.src }}
CODE

Item Link

URL for PDP
CODE
{{ i.line_item.product.url }}
CODE

Item Final Line Price

$102.00
CODE
{{ i.line_item.final_line_price }}
CODE

 

View our complete list of Klaviyo variables here.