Hello Community,
I am trying to create an abandoned cart email but am encountering a problem. I sell a product that comes in three different variants, each with its own unique variant title and image. Therefore I want to display the correct title and image for each variant when a customer adds two different variants to their cart.
I have tried this code for the image:
`{{ event.extra.line_items.0.product.variant.images.0.src }}`
and this code for the variant title:
`{{ event.extra.line_items.0.product.variant.title }}`
This setup works well when there's only a single variant in the cart. However, as soon as a customer adds two or more variants, the same variant image and title are displayed multiple times. I've tried creating a loop to solve this, but failed
It would be awesome if someone could help. Thanks in advance!