How do I dynamically insert a product image into an email. For example on a Cart Abandoned flow or a Browse product Flow, I want to insert the exact product the user browsers or added to cart to make things more personal.
Hello
Thanks for sharing your question with the Klaviyo Community!
To personalize your emails with a dynamic product that a user has previously abandoned or browsed, you would need to build a dynamic table block based on the events and metadata that triggers the flow which your email would be housed in. To learn more about building your own dynamic table blocks, I would recommend taking a look at the following articles Klaviyo offers on this subject:
- How to Build Dynamic Blocks in a Flow Email
- About Using Event Variables to Personalize Flows
- How to Insert a Dynamic Image in an Event-Based Flow Email
- Repeating a Block Based on Dynamic Data
Alternatively, Klaviyo also offers a number of pre-build abandoned cart and browse abandonment flows you can leverage within the Flows Library. These pre-build flows allow you to customize and edit them while already having a pre-coded dynamic table block which aligns with your integration’s metadata being passed.
I hope this helps!
David
Hello
Thanks for sharing your question with the Klaviyo Community!
To personalize your emails with a dynamic product that a user has previously abandoned or browsed, you would need to build a dynamic table block based on the events and metadata that triggers the flow which your email would be housed in. To learn more about building your own dynamic table blocks, I would recommend taking a look at the following articles Klaviyo offers on this subject:
- How to Build Dynamic Blocks in a Flow Email
- About Using Event Variables to Personalize Flows
- How to Insert a Dynamic Image in an Event-Based Flow Email
- Repeating a Block Based on Dynamic Data
Alternatively, Klaviyo also offers a number of pre-build abandoned cart and browse abandonment flows you can leverage within the Flows Library. These pre-build flows allow you to customize and edit them while already having a pre-coded dynamic table block which aligns with your integration’s metadata being passed.
I hope this helps!
David
I’ve been through all of these steps, and I’ve put in the repeat condition in the table so that it shows the multiple items abandoned per customer if applicable. However, I’m getting two issues:
- the image is the same across multiple products in the email, assuming because the variable I’ve used is for that first item: {{ event.extra.line_items.0.product.images.0.src }}
I’ve tried playing around with the variable so that it brings in the subsequent product images and nothing is working.
It’s also repeating each product twice, so if a customer abandoned two items, it’s showing those two items, and then showing them again (so looks like four items).
Any advice or assistance would be fantastic.
TIA
Reply
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.