Solved

Setting up Abandoned Cart flow - how to show what was in the basket?


Badge +1

Hi

How do I add the image/details of the product that they left in there cart?

Thanks

Tracy

icon

Best answer by Spark Bridge Digital LLC 24 May 2021, 15:54

View original

2 replies

Badge +1

Thank you so much,All sorted!

Userlevel 5
Badge +20

Hey Tracy, do you have abandoned cart data coming in from your site yet? That will be a key part since you’ll have specific event variables you’ll be putting into your template.

 

Most variables can be seen here: https://help.klaviyo.com/hc/en-us/articles/115002779071-About-Using-Event-Variables-to-Personalize-Flows



But if you click ‘Preview’ in your email, you’ll see a sample event. And if you click the titles within that preview that might be something like ‘Product Title’, it’ll allow you to copy that variable to paste into your template. Like ‘{{ event.extra.line_items.0.product.title }}’ would pull in that title for Shopify.

 

If you want your table to be dynamic over an array, meaning repeating for each item in the cart - you’ll need to adjust that variable to ‘{{ item.product.title }}’ and follow these steps to build your array table - https://help.klaviyo.com/hc/en-us/articles/360032871031 (Step Four).

 

Seems tricky but easy once you get past the initial setup - let me know if you have any questions!

 

Reply