Skip to main content
Contributor I
June 6, 2024
Solved

Same Product Images In Order Confirmation - WooCommerce

  • June 6, 2024
  • 1 reply
  • 103 views

Heya,

I’m making an order confirmation email (WooCommerce), however, for some reason, the image of the products is always showing the first one.
 


I am using this for the image:
{{ event.extra.Items.0|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'|default:'' }}

I have a feeling that the “0” for the item number in the array doesn’t go up for each cycle when displaying every product in the order, but I’m not sure how I can make it do so.

Can anyone please give an idea?

This topic has been closed for replies.
Best answer by stephen.trumble

Hey @kiplario 

Have you exported this template to your woocommerce site and tested? Most transactional email templates are made to export into your site vs viewing in the Klaviyo enviroment.

1 reply

stephen.trumble
Klaviyo Alum
June 18, 2024

Hey @kiplario 

Have you exported this template to your woocommerce site and tested? Most transactional email templates are made to export into your site vs viewing in the Klaviyo enviroment.

-Stephen