insert the words present in the order TAGS into the "new order" emails

Nayaril
Shopify Partner
5 0 0

Hi everyone,

I was trying to insert the words present in the order TAGS into the "new order" emails.

I'll explain. I installed Buunto to give customers the opportunity to choose the desired delivery date of the ordered product. In Shopify orders this information appears in the form of a TAG in the TAG section.

I tried to change the code of the new order notification emails but nothing appears.

I did it this way:

<table class="row">
<tr>
<td>
<strong>Delivery date and comments</strong>
<br>
{{ current_tags }}
</td>
</tr>
</table>

Did I do something wrong?

Thanks a lot to everyone

Replies 2 (2)

JoesIdeas
Shopify Expert
2228 203 593

If you want to show all of the order tags, use {{ tags }} 

 

Reference: https://help.shopify.com/en/manual/orders/notifications/email-variables#order-fulfillment

 

The tags variable is an array, so you can also filter and pluck from it, for example:

 

{% for tag in tags %}
  {% if tag contains "Some text that is partial in a tag" %}
    This shows that tag: {{ tag }}
  {% endif %}
{% endfor %}

 

That would help you to show a tag only if it contains some specific text.

 

Reference for working with loops: https://shopify.github.io/liquid/tags/iteration/

 

• Creator of Order Automator (automate tagging, fulfillment, Amazon, notifications + more)
• Shopify developer for 10+ years, store owner for 7 years
• I also make guides like Shopify Automation Tips and How to Deal with Fraud / Chargebacks
Nayaril
Shopify Partner
5 0 0

Thanks Joes for your reply! first of all happy new year! I have read the documentation and tried different ways, unfortunately I cannot make the order tags appear in the field I created in the email reporting a new order. I apologize but I'm not familiar with programming and I don't understand what I have to do.