@Angel05234
They are not working because they are iterated versions of the code made for the in email product block to show multiple products.. you need to use the exact code for it which can vary depending on what integration you are on but {{ event.extra.line_items.0.presentment_title|default:'' }} should be working.. this will show the product name for the first product in the cart
Thaks bobi! That’s very useful.
I finally solved my problem using the code: {{ event.extra.line_items.0.product.title }}. The integration I’m using is Shopify, and that code allowed me to show the first product in the cart.
@Angel05234
They are not working because they are iterated versions of the code made for the in email product block to show multiple products.. you need to use the exact code for it which can vary depending on what integration you are on but {{ event.extra.line_items.0.presentment_title|default:'' }} should be working.. this will show the product name for the first product in the cart
Where can I find the exact code? I would also like to do something like this. I am using Shopify and have tried a few things from my built-in templates:
{{ line.variant.title }}
It doesn’t seem to work in the subject line of my email.
Sorry, this is probably pretty basic, but I really don’t understand how this all works.
Thanks in advance for any help on this!