Skip to main content

Hi there, 

We’re trying to use product titles in Back in Stock emails, but it’s not picked up in the subject line. We’re using this:

{{ catalog_item.title }} is back in stock

The code above works perfectly well in the body of the email. Is the catalog_item variable simply not available in the subject line? I couldn’t find anything in the docs. 

Any help appreciated, thanks very much.

Hey @npstudio 

Can you try copying the dynamic tag from the preview for the title? and paste it in the subject line?

it should look something like - {{ event.ProductName|default:'' }}

from what I see you are using Catalog lookup as reference

{{ catalog_item.title }} is only available to reference inside of a {% catalog %} block

which should be between opening and closing catalog tags

{% catalog itemID unpublished="cancel" %}
...
{% endcatalog %}

I hope this helps

Cheers

Arpit Banjara 


The {{ event.ProductName|default:'' }} worked, thanks very much @ArpitBanjara!


Reply