I want to add a custom field to a plain email that shows one of the items that are being checked out to an abandoned cart flow email. Is it possible to do so? thanks!
Add cart items to a plain text email
Hi
Yes - all “event” variables (and personalization/profile properties) can be used in a Plain Text email as well. If you’re on Shopify, here’s an example code to retrieve the first item and use it in the text email.
Here’s an example of the email I have in a normal Klaviyo Template:
![](https://uploads-us-west-2.insided.com/klaviyo-en/attachment/b9a7952f-3b7b-4e6a-a391-a30b4a9e2669.png)
When I replace my Klaviyo Template version with a Plain Text email, I can use the Event variables in the text email like this, but only referencing the first item:
Hi {{ first_name }},
Did you leave the {{ event.Items.0|default:'' }} behind?
The Team
Where {{ event.Items.0|default:'' }}
is the code for the first item in their cart.
See my preview email here:
![](https://uploads-us-west-2.insided.com/klaviyo-en/attachment/e2b73207-3612-40f5-a1e1-3518692a8f74.jpg)
For documentation on using event variables, this guide might help you:
Hope this helps!
Hey, thanks! and thank you for the links.
Can you help me understand what is the difference between {{ event.Items.0|default:'' }} and {{ event.extra.line_items.0.product.title }}
if it’s a platform change, I’m using shopify and so the second one is appearing in the resource section so that’s the one i need to use, correct?
Jumping on this thread! I’m using the {{ event.Items.0|default:'' }} in plain text emails but want this to link to the specific product - is this possible please?
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.