Price Range Slider have decimal places for null

Tagged:
  • sile
    Participant
    1 year, 6 months ago #31350

    Hi
    for the price Range Slilder we use Range Slider – Ion.RangeSlider js library but our value for null is not 0, it is 0.899999999999
    and the hight too 1432,94999
    example https://1000-brands.com/beauty/
    can you help us please.

    • This topic was modified 1 year, 6 months ago by wpsolr.
    wpsolr
    Keymaster
    1 year, 6 months ago #31351

    In the Range Slider documentation, you can find a way to customize your slider display.

    For instance, to round decimals:

    wpsolr_ion_range_slider_options = { grid: true, prefix: "€", prettify: function my_prettify (n) {
    return Math.floor(n);
    }};
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.