Skip to main content
Solved

How should I display customized discount codes for different products in emails

  • June 13, 2023
  • 1 reply
  • 254 views

Forum|alt.badge.img+1

I can display customized discount codes for different products in .liquid file with this code ‘ {{ line_item.discounts.first.code }}’.

But I can’t use it in klaviyo anandoned cart email templete.

 

Best answer by Taylor Tarpley

Hi there @hy1997

 

Welcome to the Community! Happy to help!

 

While you can pass discount codes from Shopify to Klaviyo through flows with certain event triggers like, Placed Order and Fulfilled Order metrics, this isn’t possible with an Abandon Cart metric. While your discounts for your products show in your Shopify site and templates in the .liquid file, that doesn’t mean that it can automatically pass this data into a Klaviyo template. Product information gets passed by event triggers and specifically discount information only passed through the above flow event triggers.

 

For instance, this thread below shows a conversation on how to show product discounts in an order confirmation flow.

 

However, if you want to show discounted prices vs original prices of products in your Abandon Cart emails, you can do so following this similar Community thread or investigate setting up a Price drop flow.

 

Thanks for participating in the Community!

-Taylor 

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

1 reply

Taylor Tarpley
Community Manager
Forum|alt.badge.img+60
  • Community Manager
  • 2148 replies
  • Answer
  • June 13, 2023

Hi there @hy1997

 

Welcome to the Community! Happy to help!

 

While you can pass discount codes from Shopify to Klaviyo through flows with certain event triggers like, Placed Order and Fulfilled Order metrics, this isn’t possible with an Abandon Cart metric. While your discounts for your products show in your Shopify site and templates in the .liquid file, that doesn’t mean that it can automatically pass this data into a Klaviyo template. Product information gets passed by event triggers and specifically discount information only passed through the above flow event triggers.

 

For instance, this thread below shows a conversation on how to show product discounts in an order confirmation flow.

 

However, if you want to show discounted prices vs original prices of products in your Abandon Cart emails, you can do so following this similar Community thread or investigate setting up a Price drop flow.

 

Thanks for participating in the Community!

-Taylor