My Account

Forums

Forums General Display custom display value in (WooCommerce) price fields Reply To: Display custom display value in (WooCommerce) price fields

#52214
Steven Polak
Participant

Summary for future users:

> I’ve got a price range slider;
> I have linked a data-grid with (price) values that match the steps of the slider input, and label names, to the slider input;
> Near the slider (all coded in an HTML field) I dynamically display the labels (data-label attributes in the <datalist> element) instead of the price values;
> I did this using jQuery, by filtering the data-labels and returning them as innerHTML when the corresponding option of the data-label equals the input of the range slider.