Developer forum

Forum » Development » Priceslide filter, limit maximum price per productgroup

Priceslide filter, limit maximum price per productgroup

Rob Lohmann
Reply
For our customer www.oosterik.nl we're using an priceslider. We want to limit the maximum price of the filter depending on the current productgroup. We've found an way to determine the maximum price with javascript and modify the maximum price in the filter. However after filtering on an manufacturer for example the pricefilter isn't being resetted. The only option for us now is to use the default 'filter.price.from' and 'filter.price.to'. These are the steps i'm taking;

- Navigate to an productgroup (for example barbecues). The price for filters is now set from 0-800 euros.
- Here select an manufacturer to filter on. After this option is being selected the maximum price in the filter is being set to highest productprice in this group. Let's say 0-200 euros.
- Then I deselect the filter so i'm being presented with all products again. Except the price filter isn't being restored to 0-800 euros. So we need a way to reset the pricefilter. Preferably with as much default Dynamicweb functionality as possible.

Any suggestions or best practices for this? Below the used javascript



Replies

 

You must be logged in to post in the forum