I’ve created an abandoned cart block in Klaviyo that displays all items in someone’s cart. This makes the email size really large, which creates a email clipping issue. I wanted to see if there’s a way to show only the first abandoned cart item in Klaviyo with a dynamic block.
Abandoned Cart Email - Is it possible to display only one abandoned cart item?

Best answer by Omar
Hi
Welcome to the community and a great question you ask.
In short, the answer is yes.
You do need to play around with the dynamic codes to make it work but in short it comes down to using the direct link to the first product in the feed and not using the repeat/loop function.
If you're using Shopify this means that for the Title you can use this:
{{ event.extra.line_items.0.product.title|default:'' }}
For the image source:
{{ event.extra.line_items.0.product.images.0.src|default:'' }}
For the image thumbnail:
{{ event.extra.line_items.0.product.images.0.thumb_src|default:'' }}
For the Price:
{{ event.extra.line_items.0.price|default:'' }}
This does mean it will always only take the first image & the first product.
These are the “direct” links to the variable for the first product in the list below.

Regards,
Omar Lovert // Polaris Growth // Klaviyo Master Platinum Partner
We help with e-commerce growth through CRO, Klaviyo and CVO
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.