Order confirmation email tigger by a tag?

Alex295
New Member
4 0 0

Is it possible to trigger a different text with a HTML code in our current order confirmation email when an order has a certain order tag?

0 Likes
JHKCreate
Shopify Partner
2499 412 595

Hi @Alex295 

You can access the Order tags by using order.tags as shown on this link: The order object (shopify.dev)

Let me know if you need additional help!

 

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
0 Likes
Alex295
New Member
4 0 0

Hi @JHKCreate,

Thanks for the reply.

Can I add the tag anywhere in the current order confirmation template?

And how can I a certain text if this tag will apply?

 

0 Likes
JHKCreate
Shopify Partner
2499 412 595

Yes you can add it anywhere. 

To detect a tag, you can use:

{% if order.tags contains "tagtocheck" %}
Insert Information Here
{%endif%}


Let me know if that works for you!

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
0 Likes
Alex295
New Member
4 0 0

I didn't worked.

I added it in the order confirmation email template, made an order manually and added the tag but the additional text which should be shown did not shown up in the email.

0 Likes
Alex295
New Member
4 0 0

anybody else has a solution?

0 Likes