A user wants to create a “DESIGNERS” section on their Shopify store that displays clickable designer tags with product counts, similar to an example site they provided.
Initial Solutions Offered:
Multiple developers provided code snippets to create a custom Liquid section that displays collections with product counts
One suggestion involved using customer tags to control visibility (misunderstanding the request)
Core Challenge Identified:
The user stores designer names as product tags rather than collections or the vendor field. This creates two problems:
No way to programmatically distinguish designer tags from other tags (like sizes)
Shopify can’t easily count products per tag globally
Recommended Solution:
Assign designer names to the product Vendor field (can be done via bulk operations or Shopify Flow)
Create automatic collections based on designer tags or vendor names
Use provided code that loops through shop.vendors and links to corresponding collections, displaying product counts
This approach works because Shopify has built-in vendor collections and can easily retrieve vendor lists
Current Status:
The user created a “Designer” collection with main brands but still needs to implement the vendor-based solution for full functionality. A working code example was provided that displays vendors as clickable pills with product counts.
Summarized with AI on October 24.
AI used: claude-sonnet-4-5-20250929.
You can create a new Liquid file under the “sections” folder of your theme.
Name the file “collection-list-number.liquid”, then paste the code below and save it.
This is possible, you just need to add a condition so that when a customer logs in with the tag ‘designer’, it will display the link ‘DESIGNERS’ in the header, and only ‘designers’ can access this page. You can refer to the following code:
{% if customer.tags contains 'designer' %}
Show link
{% endif %}
Ideally, use designer name as product vendor property instead of your website name.
Currently, you have designer name assigned as a tag, but there is no way to automatically tell which of the product tags is a designer name.
That’s why it is kinda difficult to suggest anything easy and good.
If you have vendor fields assigned, then it would be easy to get a list of vendors, also Shopify has built-in vendor collections, so it would be easy to implement.
This is perfect but I don’t want the collections, instead I only want the tags to appear because that’s where I have all the brands of my store. In that case, how would it be?
You want to list tags instead of collections, showing the number of products for each tag. Shopify doesn’t have a direct loop over all tags globally in Liquid, but you can do it by looping through all products, collecting tags, and counting occurrences.
Of course you can loop over, say all tags on collection all. Couple of problems – 1) you can’t tell which tags are designer tags, unless you have a list designer tags somewhere; and 2) you can’t tell how many products bear this tag.
The point is, say your Versace Black Pants have 2 tags – “Versace” and “XS”.
How code can tell which of them is designer name and which is not?
What other tag you may have?
The thing is, I created a collection with specific tags, so the size tags aren’t included in that collection. With that in mind, and considering that I can use this collection, is it possible to include only the tags that appear in it? (maybe I’m explaining myself so bad sorry)
Not quite – Automatic collection condition may include only some tags, but products in collection will still have all their tags regardless.
And collection object has a list of all tags available on products in this collection.
If you want to show number of products for each designer, you’d need to have collections created.
I know that you have more than 1000 products, but how many designers you have?
Create automatic collections based on designer tag.
Or can be automated with Flow.
Ideally, as I said, also assign product Vendor to be the designer – this will help as well. Easy with bulk product operations in Admin – filter products by tag, select all and assign vendor. Or can use Flow again.
If there is a collection with the same title as vendor, it outputs the link to this collection (with total number of products there), or simply link to the vendor pseudo-collection.
This is how it looks in my test store: