Customise Order Notofication email accourding to order tag

New Member
1 0 0


I try to customise the order confirmation email then

if there is a tag of " pre-order" in the order , add a message to the confirmation email. otherwise send the curent email .

I already add the following code :

{% for tag in order.tags %}
{% if tag == 'pre-order' %}
<p>my message is here </p>
{% endif %}
{% endfor %}

But it doesnot do anything

anyone can help on this?