How to filter search by customer tag / item tag?

Shopify Partner
129 17 47

Hello all,

I was wondering if someone could help me with filtering searches. Essentially I want to set up the rules like this:

  1. If the customer tags contain "Wholesale", hide all items not tagged as "Wholesale" from search.
  2. If the customer tags do not contain "Wholesale", hide all items tagged as "Wholesale" from search.

I've tried most solutions I could find online but, but no matter what I've tried it just plain doesn't function. Normal customers can still see items tagged as "Wholesale" in search, and customers tagged as "Wholesale" can still see normal items in search.

As a band-aid, I have set the seo.hidden metafield to 1 on all wholesale items and removed the search bar, but this doesn't make for a very good user experience.

I used this page as a general guide to help me set up my wholesale portal: but the solutions posed do not work. 

I am using the Supply theme. I unfortunately can't share the website to show you.

Can anyone offer a solution? I would really appreciate it.

If I helped you, please help me by marking my comment as an accepted solution.
I am open to work and have been working with the Shopify system for several years.
Reply 1 (1)

Shopify Partner
194 11 21

Hi @threed 


You can use the Merchandising rule in AI Search & Product Filter  to hide products based on customer tags.  It can hide products tagged as "Wholesale" from customers with no tags or other tags.

AI Search & Product Filter | SB - Check out our Shopify search and filter app to drive more sales