• Resolved zegenrijk

    (@zegenrijk)


    Hello,

    My product with the highest costs is: € 217.50

    If i swipe the price bar to maximum, the number is 217 and after filtering, my product with the price of 217.50 is not shown. In het url i see …./?min_price=192&max_price=217

    So i think the filter sees 217.50 as 217 and because 217.50 is bigger than 217, the article is not shown.

    How to solve?

    Regards Michel

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter zegenrijk

    (@zegenrijk)

    Hello,

    Solved, but i think a bug to solve in the next release of the plugin.

    I added in this file plugins
    plugins/woocommerce-products-filter/views/shortcodes/woof_price_filter_slider.php
    just before the last <input….> line this code:

    <?php
    $max_price=$max_price+1;
    $preset_max=$preset_max+1;
    ?>

    Now the url said 218 and product is shown.

    Regards Michel

    Hello Michel

    Thank you for cooperation.

    We will do an article on this issue.

    but i think a bug to solve in the next release of the plugin.
    – This solution is not universal. Other clients may ask why the price slider show 1 more.

    Thread Starter zegenrijk

    (@zegenrijk)

    Hi,

    Other solutions are possible of course, by example that 217.50 is rounded up to 218, i think this is a better solution (but i don’t know how to programm this).

    For my client it makes not sense that his highest product is not shown at all. I think with rounded up solution no one can have a problem with this.

    Regards Michel

    Hello Michel

    This is a problem on the level of woocommerce. You can verify this by adding in widget a native price slider of the woocommerce. We use the API of it

    Thread Starter zegenrijk

    (@zegenrijk)

    Thank you, i report it to Woocommerce.

    herr

    (@herr)

    I have the same issue, but Michael’s solution doesnt seem to work…

    Thread Starter zegenrijk

    (@zegenrijk)

    in the new version this won’t work, but changed my code to, it worked:

    <?php
    $max=$max_price+1;
    $max_price=$max_price+1;
    $preset_max=$preset_max+1;
    ?>

    Issue is reported to Woocommerce

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘highest number not visible’ is closed to new replies.