Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi there I have just imported our current website from wix onto shopify and i am trying to create custom filters when viewing our products
For example we are supplier of oils for machinery and cars.
I want our customers to be able to see our products and select for example the below
- Hydraulic Oils
OR
- Engines Oils
And these products only appear.
I have downloaded Search & Discovery, i have also tried creating product metafields and watched loads of videos on youtube but i am still struggling.
Please help me.
Solved! Go to the solution
This is an accepted solution.
Tags are not the best for this.
You'd be much better of by creating product metafields of type Single line text and select "Limit to preset choices".
Each category gets its own metafield definition.
This would be quite similar to tags, but you'd be able to add different categories, while tags are just a big single heap.
No coding is necesary.
Some dox on the topic:
https://help.shopify.com/en/manual/custom-data/metafields
https://help.shopify.com/en/manual/custom-data/metafields/filtering-products
You mean you want product variant as Hydraulic Oils or Engines Oils ?
Hi @UkLubricants
You're definitely on the right track with using Shopify’s Search & Discovery app and product metafields — they’re essential for creating custom filters like “Hydraulic Oils” or “Engine Oils.”
here’s a quick overview of what needs to be done:
Tag or Categorize Products Properly
Ensure each product is labeled using either:
Product tags (e.g., Hydraulic Oil, Engine Oil)
Or custom metafields like Product Type or Oil Category.
Enable Filters in Search & Discovery
In the app, go to your collection filtering settings and add filters based on:
Product tags
Custom metafields (if set up correctly)
Theme Compatibility
Some themes (especially older ones) may not support advanced filtering. If that’s the case, a bit of custom coding might be needed to make the filters appear and work as expected.
Let me know how if you have any issues.
Hi MandasaTech,
Thanks for the response
I am using dawn theme Version 15.3.0
I have added the product tags to the relevant products
i go to my search & discoery settings but cannot see a section to filter by product tags.
I'm pretty new to shopify could you please guide me with the coding needed? where it needs to be put exactly?
Or where i am now going wrong?
Thanks for guidance.
This is an accepted solution.
Tags are not the best for this.
You'd be much better of by creating product metafields of type Single line text and select "Limit to preset choices".
Each category gets its own metafield definition.
This would be quite similar to tags, but you'd be able to add different categories, while tags are just a big single heap.
No coding is necesary.
Some dox on the topic:
https://help.shopify.com/en/manual/custom-data/metafields
https://help.shopify.com/en/manual/custom-data/metafields/filtering-products
Thanks Tim?
Like this?
See screenshot attached please.
Name is Product Type
Single line text , wont let me add any values though?
I have inputted my different product types under validations after ticking limit to preset choices
This has still not worked i believe i may have done something wrong here
This is now solved thank you.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025