
christophermearns(@christophermearns)
2 Posts
Customers
Quote from christophermearns on July 16, 2019, 21:19
Using the slider filter control, sometimes the From and To labels show the full name of the attribute, other times it seems to show the slug.
For example, one slider range's attributes are "Fair, Good, Very Good, Excellent". Sometimes the To and From labels show "Excellent". Other times it shows "EX".
Is there a way to control this behaviour? I don't see anything in the options.
Thanks.
Using the slider filter control, sometimes the From and To labels show the full name of the attribute, other times it seems to show the slug.
For example, one slider range's attributes are"Fair, Good, Very Good, Excellent". Sometimes the To and From labels show"Excellent". Other times it shows"EX".
Is there a way to control this behaviour? I don't see anything in the options.
Thanks.

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on July 17, 2019, 13:42
Hello
Try
In file – \wp-content\plugins\woocommerce-products-filter\views\shortcodes\woof_price_filter_slider.php – delete “min” –
https://c2n.me/3W89jnk.pngin file – \wp-content\plugins\woocommerce-products-filter\js\ion.range-slider\js\ion-rangeSlider\ion.rangeSlider.js – add code
https://c2n.me/3W89tJr.png :
onRedraw: null,
this.callOnRedraw();
callOnRedraw: function () {
if (this.options.onRedraw && typeof this.options.onRedraw === “function”) {
this.options.onRedraw(this.result);
}
},
onRedraw:function(ui){
jQuery(input).prev(‘span’).find(‘.irs-from’).html(titles[ui.from]);
jQuery(input).prev(‘span’).find(‘.irs-to’).html(titles[
ui.to]);
}
Do test please!
Hello
Try
In file – \wp-content\plugins\woocommerce-products-filter\views\shortcodes\woof_price_filter_slider.php – delete “min” –
https://c2n.me/3W89jnk.pngin file – \wp-content\plugins\woocommerce-products-filter\js\ion.range-slider\js\ion-rangeSlider\ion.rangeSlider.js – add code
https://c2n.me/3W89tJr.png :
onRedraw: null,
this.callOnRedraw();
callOnRedraw: function () {
if (this.options.onRedraw && typeof this.options.onRedraw === “function”) {
this.options.onRedraw(this.result);
}
},
onRedraw:function(ui){
jQuery(input).prev(‘span’).find(‘.irs-from’).html(titles[ui.from]);
jQuery(input).prev(‘span’).find(‘.irs-to’).html(titles[
ui.to]);
}
Do test please!