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

Re: How to call customer tags using Liquid

Solved

How to call customer tags using Liquid

ShopifyUserTM
Tourist
13 0 2

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?

Accepted Solution (1)

VishvasMishra
Shopify Partner
28 6 6

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

Vishvas Mishra | Shopify theme developer
Liquid Storefronts for Theme Developers Certification
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To know more about me, please visit itsmevishvas.info

View solution in original post

Replies 2 (2)

VishvasMishra
Shopify Partner
28 6 6

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

Vishvas Mishra | Shopify theme developer
Liquid Storefronts for Theme Developers Certification
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To know more about me, please visit itsmevishvas.info

Promer
Shopify Partner
312 16 91

Hi @ShopifyUserTM 

 

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 🙂

- Was my answer helpful? Please hit Like or Mark it as solution!
- Promer AI: AI-powered CRO Agents audit stores, uncover conversion blockers & bulk-generate high-impact content.
- Start your FREE trial today!