Help! Abandoned Checkout Flow for a grocery store

  • 20 September 2022
  • 1 reply

Badge +1

I have configured the recovery flow of abandoned checkouts.

We are having the following problem: The flow shows all the products in the cart, so far so good, because we want it to be like that. The problem is that in our food store there are some people who order 5 of the same products, and in the flow instead of appearing 1 time with the quantity, it appears repeated 5 times, one below the other. 

If I add the quantity option I get "1" per product and it lists them one below the other, is there any way to configure so that when they are repeated products this does not happen? and that the quantity of products and the total value for that quantity appear.


Im using the following code: 


<div><a href="{{ event.extra.checkout_url }}"><img style="max-width: 100%; display: block; margin-left: auto; margin-right: auto;" src="{{ event.extra.line_items.0.product.images.0.src }}" alt="productos"> </a></div>
<p style="text-align: center;"><span style="font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 400;">{{ event.extra.line_items.0.product.title }} - {{ event.extra.line_items.0.presentment_variant_title }} {{ event.extra.customer.total_spent }}<br><br></span></p>


Thank you in advance



1 reply

Userlevel 7
Badge +60

Hello @imturyk,

Welcome to the Klaviyo Community!

I would suggest taking a look at the explanation that my colleague, @alex.hong gave in the below Community post:

Essentially, this sort of behavior is oftentimes caused by how your ecommerce integration and/or checkout process is passing the data to Klaviyo. I’ve also seen this occur sometimes when users add those items one at a time causing new line items to occur as opposed to quantity being counted by your checkout process. 

I hope this helps!