Add a line of text into notification email with liquid.

Highlighted
New Member
2 0 0

Hi Team,

 

I am wanting to add a line into my notificatin email if an item is tagged with preorder.

 

I have tried 

 

<tr>
<td>
{% if line.product.tags contains 'preorder' %}
<h2>**This Item is a Pre Order**</h2>
{% endif %}
</td>
</tr>

 

but doesn't seem to work. can any one shed some light on how I would do this?

0 Likes
Highlighted
New Member
2 0 0

Figured it out...

 

As a work around I changed the code to this

 

{% if line.product.vendor contains 'preorder' %}
<h2>**This Item is a Pre Order**</h2>
{% endif %}

 

And then set a vendor as preorder and applied that to the items I want as pre order.

0 Likes