Reply 355655 to: the max amount on the “ajax filter by price” is less the highest product’s price

Avatar: Rose Tyler
Rose Tyler
Support staff
May 5, 2023 at 10:20

Hello, Aloulou,

Thank you for contacting us and for using XStore.

You can try to add the default WooCommerce price widget to your sidebar and you will see the same issue.
It is because WooCommerce sets a step value of 10 by default ( https://prnt.sc/D3KpkhJgv3_8 ) for price filters but for your cases it should be 1. To fix it, please, add the next code to your child-theme/functions.php

function etheme_child_set_min_price_filter_step() {
        return 1;
}
add_filter('woocommerce_price_filter_widget_step', 'etheme_child_set_min_price_filter_step', 10, 1);

Waiting for your reply!

Best Regards,
8Theme’s Team

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.