App reviews, troubleshooting, and recommendations
Hi everyone,
I am trying to add customer's tag and metafield information on the invoice template.
I tried this sample code but didn't work. (no error was shown)
{%- if customer.tags contains "test" -%} {%- if customer.metafields.my_fields.test_label -%} {{ customer.metafields.my_fields.test_label }} {%- endif -%} {%- endif -%}
Any idea how can I show the metafield value?
Thanks in advance for your help!
I found similar posts. As far as I can see these, hope seems thin...
Late reply but this will work.
While customer tags are not accessible in the Order Printer templates, you can access order tags. The best workaround here is to use the Flow app to automatically add a tag to the order based on the customer's tag.
Something like this:
Then in the Order Printer template, you can access the order tag:
{% for tag in tags %}
{% if tag == 'problem_customer'%}This is some text.{% endif %}
{% endfor %}
Hope this helps someone!
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025