Solved

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

  • 13 June 2023
  • 1 reply
  • 192 views

Badge

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.

 

icon

Best answer by Taylor Tarpley 13 June 2023, 23:58

View original

1 reply

Userlevel 7
Badge +60

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 

Reply