Wholesale Search Bar Results

New Member
1 0 0


I sell regular retail products and wholesale products in my store. My wholesale products can only be viewed by my wholesale customers. And my wholesale customers, when logged into their wholesale account will not see the retail products. 

Now, when using the search bar, all products are visible. I've placed this code to hide the wholesale products from the regular customers. But I'm having trouble doing the reverse, hiding my retail products for my wholesale customers. 


{% for item in search.results %}
{% unless item.tags contains 'wholesale' %}
{% endunless %}
{% endfor %}

Any help would be appreciated!

Shopify Partner
377 57 75

Hello @Palle !

You can try Merchandising rule in Ultimate Filter & Search app to hide certain products/ collection based on customer group (no tag, with certain tags).


WhatsApp Image 2021-05-12 at 13.35.32.jpeg


Digital Artisans

Hatim Ayoub | Designer | Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted