Klaviyo + WooCommerce Transactional Email Missing Image

  • 29 October 2021
  • 5 replies

Badge +3

Hey there, i´m trying to figure out a transactional e-mail.

Triggered if someone place an order.

I got the dynamic variables for the title price ect.

But somehow the dynamic images won´t show.

if there are 2 Products which are a variable product it works

but if they are a variable product + a single product without variables it won´t work.

Is there somebody who uses Klaviyo + Woo Commerce and alrerady figured out the right dynamic variables ?


Best answer by Dov 29 October 2021, 16:50

View original

5 replies

Userlevel 7
Badge +61

Hi @ghostzicht,

Thanks for sharing this question with the Klaviyo community.

It sounds like you may be using a tag that is only capturing the variant images.

The easiest way to fix this is to add the following code to the dynamic block:

{% if item.Variant.Image.URL %}{{ item.Variant.Image.URL }}{% else %}{{ item|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL' }}{% endif %}

You will want to navigate to the table block then click Rows > Dynamic > Column 1. Click Replace Image and insert the code and save.

Badge +3

Hey, thanks for your fast response. Now it works perfect! :raised_hands_tone1:

Badge +3

Hey @Dov i just recognized another small problem, the code above works for the most products, but as soon as ther is a product with different sizes and colours its not changing the image to the right colour...

Userlevel 7
Badge +61

Hi @ghostzicht,

I updated the original post with a new snippet that will accommodate variants as well. Please give this a try.


Badge +3

Hey @Dov , now it works for every product. Big thanks for replying that fast and solving the issue!