InstantSearch How to Add Range Slider for Price
-
I am trying to add a range slider widget for the price. However, when I add the following code, it does not work. The results show correctly when the page loads, but when I adjust the slider, it says “No Results Found”.
Here is the code I added in instantsearch.php
/* Price Slider Widget */ search.addWidget( instantsearch.widgets.rangeSlider({ container: '#facet-price-range-slider', attributeName: 'price', min: 100, max: 1000, sortBy: ['isRefined:desc', 'count:desc', 'name:asc'], pips: true, tooltips: true, templates: { header: '<h3 class="widgettitle">Price</h3>' } }) );
Please note that I have indexed the ‘price’ field in the ‘wp_posts_products’ index previously. I know it works since it shows up in the Automcomplete drop down results.
Any ideas?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘InstantSearch How to Add Range Slider for Price’ is closed to new replies.