Personalized checkout and custom promotions with Shopify Scripts
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I want to add customer tags to our pick list. Is there a way to use Liquid to list the tags that we have added to the customer in Shopify? Are the tags considered objects that can be retrieved?
Solved! Go to the solution
This is an accepted solution.
hi @ShopifyUserTM
<ul>
{% for tag in customer.tags %}
<li>{{ tag }}</li>
{% endfor %}
</ul>
Hoping that above code will work for you.
Thanks
This is an accepted solution.
hi @ShopifyUserTM
<ul>
{% for tag in customer.tags %}
<li>{{ tag }}</li>
{% endfor %}
</ul>
Hoping that above code will work for you.
Thanks
Yes! In Liquid, customer tags can be retrieved using the customer.tags object. If you're customizing your pick list, you can display customer tags like this:
{% if customer %}
<p>Customer Tags: {{ customer.tags }}</p>
{% else %}
<p>No customer found.</p>
{% endif %}
However, note that Liquid only works in Shopify templates (like order confirmation emails or customer accounts). If you're generating a pick list in an app or third-party tool, you might need to use the Shopify API instead
Hope this helps 🙂