Skip to main content
Solved

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

  • May 24, 2021
  • 2 replies
  • 229 views

Forum|alt.badge.img+3

Hi

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

Thanks

Tracy

Best answer by Spark Bridge Digital LLC

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!

 

2 replies

Spark Bridge Digital LLC
Partner - Platinum
Forum|alt.badge.img+33

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!

 


Forum|alt.badge.img+3
  • Author
  • Contributor I
  • May 24, 2021

Thank you so much,All sorted!