• Resolved gertruda

    (@gertruda)


    How to remove a thousand separator in prices in the range slider?

    • This topic was modified 5 months ago by gertruda.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    What type of slider do you use?

    Can you drop me exact link to the issue?

    Thread Starter gertruda

    (@gertruda)

    I use price range slider.
    https://tarsma.com/21.png

    • This reply was modified 4 months, 4 weeks ago by gertruda.
    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Try in file – \wp-content\plugins\woocommerce-products-filter\js\front.js – change this code – https://share.pluginus.net/image/i20240705114358.png

    clear all cache and do a test

    Thread Starter gertruda

    (@gertruda)

    Thanks, but the picture won’t load

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Please find this function woof_init_ion_sliders() change code:

    function woof_init_ion_sliders() {

    jQuery.each(jQuery('.woof_range_slider'), function (index, input) {
    try {


    jQuery(input).ionRangeSlider({
    min: jQuery(input).data('min'),
    max: jQuery(input).data('max'),
    from: jQuery(input).data('min-now'),
    to: jQuery(input).data('max-now'),
    type: 'double',
    prefix: jQuery(input).data('slider-prefix'),
    postfix: jQuery(input).data('slider-postfix'),
    prettify: false,
    prettify_enabled: false,
    hideMinMax: false,
    hideFromTo: false,
    grid: true,
    step: jQuery(input).data('step'),
    onFinish: function (ui) {
    var tax = jQuery(input).data('taxes');
    woof_current_values.min_price = (parseFloat(ui.from, 10) / tax);
    woof_current_values.max_price = (parseFloat(ui.to, 10) / tax);
    //woocs adaptation
    if (typeof woocs_current_currency !== 'undefined') {
    woof_current_values.min_price = woof_current_values.min_price / parseFloat(woocs_current_currency.rate);
    woof_current_values.max_price = woof_current_values.max_price / parseFloat(woocs_current_currency.rate);
    }
    //***
    woof_ajax_page_num = 1;
    if (woof_autosubmit || jQuery(input).within('.woof').length == 0) {
    woof_submit_link(woof_get_submit_link());
    }
    return false;
    },
    onChange: function (data) {
    if (jQuery('.woof_price_filter_txt')) {
    var tax = jQuery(input).data('taxes');
    jQuery('.woof_price_filter_txt_from').val(parseInt(data.from, 10) / tax);
    jQuery('.woof_price_filter_txt_to').val(parseInt(data.to, 10) / tax);
    //woocs adaptation
    if (typeof woocs_current_currency !== 'undefined') {
    jQuery('.woof_price_filter_txt_from').val(Math.ceil(jQuery('.woof_price_filter_txt_from').val() / parseFloat(woocs_current_currency.rate)));
    jQuery('.woof_price_filter_txt_to').val(Math.ceil(jQuery('.woof_price_filter_txt_to').val() / parseFloat(woocs_current_currency.rate)));
    }
    }
    },
    });
    } catch (e) {

    }
    });
    }

    Thread Starter gertruda

    (@gertruda)

    Thanks!

    Plugin Support mediawebster

    (@mediawebster)

    Welcome;)

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.