How to create custom filter with URL paramters on Collection page?

SanderDongelmansSanderDongelmans Member Posts: 4

Hi all,


I'm trying to create a custom filter for our collection page. You can find the collection filter here:

http://dent-tool-company-268410.webshopapp.com/nl/gereedschap/hand-tools/?brand=0&min=0&max=250&min-length=0.27cm&max-length=17.78cm


You see we have a min and max parameter for the price. This is default in Lightspeed. To get this two value you can use this code: {{ collection.filters.min }}


Now i made a filter for the Length of our products. This value is saved in the data_01 field.

The filter is working good, but i can't get the current value of the filtered length in the rain code.

I only can get this values using javascript...


I tried to get it with {{ request.url }}. But there i can't filter on parameters ofcourse :(


Can you guys help me please?

I hope you guys understand what i'm trying to do.


Looking forward to here from you.


With kind regards,

Sander Dongelmans

Sign In or Register to comment.