Create filter for price between two points

Highlighted
Shopify Partner
22 0 1

Hi,

I'm trying to figure out how to create a price filter when viewing a collection (or all collections). At the moment I can filter by category, which returns the URL:

/collections/all/name-of-category

And then I can sort this via a drop-down, which changes the URL like so: 

/collections/all/name-of-category?sort_by=created-ascending

I want to be able to create a price filter, in my side bar, which would allow me to add checkboxes, something like this:

Filter by price:

|  | - Below £5
|  | - £5 - £25
|  | - £25 and above

Clicking a checkbox would reload the page with just those products that's price falls into which ever checkbox you clicked.

Is this possible with shopify? Anyone know a tutorial or the liquid required to get this working?

Also, just to mention, my client doesn't want to use any paid for apps, as i've seen one that offers this, is there a way I can do this myself?

Thank you

0 Likes
Highlighted
Shopify Expert
9930 105 1766

Is this possible with shopify? Anyone know a tutorial or the liquid required to get this working?

Possible yes, but it won't be with liquid. You'd need to load all the products in the collection and do the filtering with JavaScript.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Highlighted
New Member
1 0 0

How did you do this?

0 Likes