Skip to main content

Hi, everyone. I am basically looking for code for my Checkout Abandonment email for my Elevar flow. For Shopify, the below code works beautifully, but of course Elevar has it’s own syntax and that code doesn’t work. And I simply can’t seem to find a sample to use anywhere. Any suggestions?

{{ item.productTitle }}

Quantity: {{ item.quantity|floatformat:0 }} — Total: {% currency_format item.line_price|floatformat:2 %}

 

Hi ​@DaveinLA 

Thank you for posting in the Community! 

 

I am happy to help you out!

Inside of your flow in Klaviyo, go to your template and press preview and test (inside of the email - very important)

From there on the right hand side you will have the most recent events available to you. Click the data from the payload (URL, ImageUrl, Product name etc) into your template. These are different from the Shopify API payload data, so that is quite possibly why you are experiencing some troubles setting it up.

 

Product title: {{ event.cartContents.products.productTitle|default:'' }}

Price: {{ event.cartContents.products.price|default:'' }}

Image URL: {{ event.cartContents.products.imageUrl|default:'' }}

 

**Please note that the above is from a Added to cart metric in elevar event in Klaviyo, I don’t have access to a started checkout payload.

 

From there, you can set up your dynamic table by adding changing the event with item - this ensures that the table will populate all items in cart and not just the first one. 

You can watch this guide to get a feeling of how you can set it up: https://help.klaviyo.com/hc/en-us/articles/115002779411

I hope this helps - otherwise let me know. Happy to clarify!