Solved

How can I add the product name to a cart abandon email subject line?

  • 23 August 2023
  • 3 replies
  • 463 views

Badge

Hi community!

I’m creating a cart abandonment sequence, and I’d like to add the product name to one of my subject lines. I’ve tried a lot of tags like:

 

{{ item.product.name }}

{{ item.product.title }}

{{ event.product.name}}

 

But none of those tags have worked.

 

How can I add the product name to my subject line?

icon

Best answer by Bobi N. 23 August 2023, 07:12

View original

3 replies

Userlevel 7
Badge +42

@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

Badge

@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.

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!

Reply