Hello,
We are using Klaviyo for our transactionnal emails and CRM.
First some informations :
- Woocommerce
- Metric used : fullfilled order but same with all
- Single product image metric : {{ event.extra.Items.0|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'|default:'' }}
- Variable product metric : {{ event.extra.Items.0.Variant.Image.URL|default:'' }}
- Table edit. Row : event.extra.Items Alias : items
{{ items|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'|default:'' }} is showing single product image
![](https://uploads-us-west-2.insided.com/klaviyo-en/attachment/070318f8-db25-4d73-a599-840ed7775e91.png)
{{ items.Variant.Image.URL|default:'' }} is showing variable image product
![](https://uploads-us-west-2.insided.com/klaviyo-en/attachment/87abee76-edca-4102-93fc-acf8d335fc25.png)
Our issue is
We are using single and variable product in our website. When we put
![](https://uploads-us-west-2.insided.com/klaviyo-en/attachment/780790e7-15b2-42f0-b292-fde2dbd63fb1.png)
We don’t have the dedicated image of the variation in the email but the single product image only.
When we put
![](https://uploads-us-west-2.insided.com/klaviyo-en/attachment/b8dbf7e6-dfa8-42a0-901b-f7dee24ff43f.png)
Only the variable product image is showing in the email and when an order contain a single product there is a blank image.
What we tried reading tutorials and topics :
Replace the |default:'' in variable product image by the single product image metric but not working.
- {{ items.Variant.Image.URL|default:'{{ items.0|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'|default:'' }}' }}
- {{ items.Variant.Image.URL|default:'{{ items|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'|default:'' }}' }}
- {{ items.Variant.Image.URL|default:’items.0|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'|default:''' }}
- {{ items.Variant.Image.URL|default:’items|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'|default:''' }}
- {{ items.Variant.Image.URL|default:'|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'|default:''' }}
- {{ items.Variant.Image.URL|default:'|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'|' }}
Add the single product at the end
- {{ items|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'|default:'' }}
What we are looking for :
We want the dynamic table shows the single product image when single product and when there are variations shows variations image.
Thank you for your help and sorry for my english. Not native.
Have a good day.