Home » Topics » Integration with plugins » WooCommerce » WPSolr Price filter design
Hi,
When I use the range price filter I get a lot of decimals. Is there a Javascript option like the prefix: “€”}; to delete all these decimals, and have round prices like €10 till €100 ?
Kind regards,
Jamie
Can you copy here your current javascript options for your ion.rangeslider filter?
wpsolr_ion_range_slider_options = { grid: true, prefix: “€”};
This should make the trick (inspired by https://ionden.com/a/plugins/ion.rangeSlider/demo.html#a_prettify):
wpsolr_ion_range_slider_options = { grid: true, prefix: "€", prettify: function my_prettify (n) { return Math.floor(n); }};
Yes it works, Thank you!
You must be logged in to reply to this topic.