Support » Plugin: WooCommerce » Filter Products By Price Widget Range

  • Resolved xolite

    (@xolite)


    Is there a way to change the default range, all my products are less than $10.00, however it seems the Filter Products By Price Widget’s default is $0 – $10.00.

    Ideally, I would like to change the range from $0 – $lowest_price_item – $highest_price_item if that makes sense.

    Thank you, appreciate any insight.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support abwaita a11n

    (@abwaita)

    Hi @xolite,

    I would like to change the range from $0 – $lowest_price_item – $highest_price_item

    To ensure that there isn’t a misunderstanding with this part of your statement, could you kindly elaborate?

    Just to mention, the Filter Products by Price widget should automatically detect the highest and lowest prices on a given page and then populate the slider.

    Plugin Support laceyrod a11n

    (@laceyrod)

    Automattic Happiness Engineer

    Hi @xolite

    Since we haven’t heard back from you, and this thread has been inactive for a bit, I’m going to mark it as Resolved now for the overall health of the forums. Please feel free to open a new one if you have any further questions.

    Cheers!

    Thread Starter xolite

    (@xolite)

    Woocommerce does indeed auto detect the price range starting at $10.00.

    I fixed it for anyone interested with:

    function change_price_filter_step() {
    return 1;
    }
    add_filter( ‘woocommerce_price_filter_widget_step’, ‘change_price_filter_step’, 10, 3 );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter Products By Price Widget Range’ is closed to new replies.