Skip to main content
Solved

Custom Properties From Shopify Product For Variables In Email


Forum|alt.badge.img

So essentially I am trying to display certain copy in the email based on some variables from the shopify product that don’t get normally transferred over via the event trigger or customer profile. 
There are not many different variations, lets say like 7 total
but depending on what the customer ordered I want to display certain copy and unfortunately I don’t think it will be able to be differentiated via the title of the product as it is a sub-variation of the prodcut.
For example it is coffee.
I want the user to be able to select where they order the coffee from and depending on that they will get information about the beans, how to brew and more in the email. The product will not be titled with the origin of the beans,

Is there a way I can create a custom property for a product listing on shopify (origin/country) and then i guess based on that I can use logic within the email to show different text?

Best answer by Mich expert

Yes, you can achieve this by using Shopify line item properties to pass custom product data (e.g., origin/country) into Klaviyo. Here’s a simple approach:

  1. Add a Custom Property in Shopify – Modify your Shopify product page to include a line item property for the coffee’s origin.
  2. Sync Custom Properties with Klaviyo – Ensure these properties are passed in your Shopify event data when an order is placed.
  3. Use Conditional Logic in Klaviyo – In your email template, use dynamic variables (e.g., {{ event.extra.line_items.0.properties.origin }}) to personalize content based on the selected origin.

This method allows you to display tailored brewing instructions and details in emails dynamically. Let me know if you need help setting it up!

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Mich expert
Problem Solver IV
Forum|alt.badge.img+11
  • Problem Solver IV
  • 64 replies
  • Answer
  • February 1, 2025

Yes, you can achieve this by using Shopify line item properties to pass custom product data (e.g., origin/country) into Klaviyo. Here’s a simple approach:

  1. Add a Custom Property in Shopify – Modify your Shopify product page to include a line item property for the coffee’s origin.
  2. Sync Custom Properties with Klaviyo – Ensure these properties are passed in your Shopify event data when an order is placed.
  3. Use Conditional Logic in Klaviyo – In your email template, use dynamic variables (e.g., {{ event.extra.line_items.0.properties.origin }}) to personalize content based on the selected origin.

This method allows you to display tailored brewing instructions and details in emails dynamically. Let me know if you need help setting it up!


Forum|alt.badge.img
  • Author
  • Contributor I
  • 3 replies
  • February 1, 2025

Thanks again mich