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!
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024