Search product within collection liquid

New Member
10 0 0

I'm developing a theme.


I want to search products within a collection. 

For example I have collection ("Men") and I want to search product within "Men" collection. 

Default search only allow to search the entire store but I want only within collection.


How can I achieve this. I want to use liquid not Ajax or javascript or something else.



Shopify Partner
1756 289 374

Hi @AzeemHaider 

For that may be you have to use Ajax search to get only product of current collection and for that you need custom development, so if you can't do then text me i will help or PM.

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Skype: jasoliya.brijesh
Shopify Expert
9981 84 1492

You will not be able to use Liquid alone. It will require the use of JavaScript in some form.


An AJAX (JavaScript) approach would also only be suitable if the collection has a relatively small amount of products. If it has - for example - 10k products that approach would not be suitable. What's the hesitation with an approach like that?

★ Winning Partner of the Build a Business competition. ★
New Member
10 0 0

How can I do it with Ajax