Skip to main content
Solved

Abandoned cart email photo does not show

  • December 24, 2024
  • 2 replies
  • 18 views

Forum|alt.badge.img
I have looked thru this community with this code but it does not work for me. Please has anyone a code where my product picture shows and not only a link where you can click or copy to see the photo.

 

Best answer by MANSIR2094

Hello Kaimznl,

If your product images aren’t showing in your abandoned cart emails, here’s a simple fix tailored to your platform:

 

Use this code in your email template:

Copy code

{% for item in event.extra.line_items %} <img src="{{ item.product.images.0.src }}" alt="{{ item.product.name }}" style="width:150px; height:auto;"> <p>{{ item.product.name }} - {{ item.quantity }} x {{ item.product.price }}</p> {% endfor %}

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

2 replies

MANSIR2094
Problem Solver IV
Forum|alt.badge.img+13
  • Problem Solver IV
  • 188 replies
  • Answer
  • December 25, 2024

Hello Kaimznl,

If your product images aren’t showing in your abandoned cart emails, here’s a simple fix tailored to your platform:

 

Use this code in your email template:

Copy code

{% for item in event.extra.line_items %} <img src="{{ item.product.images.0.src }}" alt="{{ item.product.name }}" style="width:150px; height:auto;"> <p>{{ item.product.name }} - {{ item.quantity }} x {{ item.product.price }}</p> {% endfor %}


ali786
Expert Problem Solver I
Forum|alt.badge.img+10
  • Expert Problem Solver I
  • 78 replies
  • December 25, 2024

@karimznl Are you using by default dynamic bloc provided by klaviyo?

Make sure you have at least 1 abandoned cart activity in klaviyo.

Lemme know if you have any question