Skip to main content
Solved

abandoned cart : table block dynamic repeat only for the first item product

  • January 26, 2021
  • 5 replies
  • 631 views

Forum|alt.badge.img+2
  • Problem Solver I
  • 3 replies

hey, is there a way to display some data in the flow abandoned cart only for the first product of the cart and not repeat for all the products please ?

thanks you :)

 

Best answer by horace

i found a solution, I write a test in source code like this:

{% if event.Items.0 == item.product.name %}

something

{% endif %}

 

thanks you for your patience!

View original
Did this topic or the replies in the thread help you find an answer to your question?

5 replies

Forum|alt.badge.img+7
  • Problem Solver I
  • 38 replies
  • January 26, 2021

Did you set the dynamic two times?

try to use klaviyo by default Dynamic block. No need to set two times.If your customer left there cart 2 times, Klaviyo will be showing the two items.


Forum|alt.badge.img+2
  • Author
  • Problem Solver I
  • 3 replies
  • January 26, 2021
forman wrote:

Did you set the dynamic two times?

try to use klaviyo by default Dynamic block. No need to set two times.If your customer left there cart 2 times, Klaviyo will be showing the two items.

 

no i don’t think so! I just want to show the image of the first product of the abandoned cart but I don’t how to do that!

as you can see in the picture, I managed to display the image of the first product but the block is repeated according to the number of product… :/


retention
Partner - Platinum
Forum|alt.badge.img+62
  • 2025 Champion
  • 942 replies
  • January 26, 2021

@horace Hi,
This is a weird scenario. I don’t think that the settings in the dynamic table are the problem. It looks like you have multiple same table blocks inserted into the email.

If you can provide a screenshot(s) of your Email Template from the template builder, maybe we can troubleshoot this.

Cheers!


Forum|alt.badge.img+2
  • Author
  • Problem Solver I
  • 3 replies
  • January 27, 2021
retention wrote:

@horaceHi,
This is a weird scenario. I don’t think that the settings in the dynamic table are the problem. It looks like you have multiple same table blocks inserted into the email.

If you can provide a screenshot(s) of your Email Template from the template builder, maybe we can troubleshoot this.

Cheers!

 

thanks you for your reply!

above the sentence “T’as bonne mine, dis donc !” it’s supposed to be a picture of the first product of the abandoned cart (so it’s a dynamic block). then, there is another dynamic block with information of each product of the abandoned cart (name, price, reviews,...)


Forum|alt.badge.img+2
  • Author
  • Problem Solver I
  • 3 replies
  • Answer
  • January 27, 2021

i found a solution, I write a test in source code like this:

{% if event.Items.0 == item.product.name %}

something

{% endif %}

 

thanks you for your patience!