Working with decimal numbers

Forums › Forums › Search & Filter Pro › Working with decimal numbers

Tagged: ,

Viewing 10 posts – 1 through 10 (of 10 total)
  • Anonymous
    #197873

    Hi Trevor,

    We’re using Advanced Custom Fields and Search & Filter on https://poppenoog.nl/huurboten. In the filter we are using several post meta’s (ACF fields) for sizes like length, width, height etc. these fields contain values like 1, 2, 15 but also values like 1,11, 2,54, 13,65 etc.

    Right now when we filter on the max size the URL wil contain 43,00 but will show no results. If we manually change that URL to 43 it will show results.

    Do you know what’s going on here and how to fix this?

    Best regards,
    Robin

    Trevor
    #197876

    What have you set for the thousands and decimal seperators in the field setup? See here:

    https://www.screencast.com/t/aiVHWBFVkzpm

    Both cannot be a comma.

    Anonymous
    #197879

    Hi Trevor,

    Thanks for your quick reply. We are using the Range – Number, that doesn’t show this options. Is there a way to set those settings for Range – Number?

    Best regards,
    Robin

    Trevor
    #197881

    Hi Robin

    If you change it to range – slider, what are they set to?

    Anonymous
    #197883

    Hi Trevor,

    They’re set:

    Decimal Places: 2, Thousands separator: . and Decimal separator ,

    For instance when I now use the filter Hoogte, which can be found on https://poppenoog.nl/huurboten in the dropdown Afmeting. It says the minimum is 0 and the maximum is 43,00. When I change the minimum to 20 the URL changes to https://poppenoog.nl/huurboten/?_sfm_boot_hoogte=20+43,00 and doesn’t show any results.

    When I manually change that URL to https://poppenoog.nl/huurboten/?_sfm_boot_hoogte=20+43 it’ll find the results.

    So it looks like S&F doesn’t ‘read’ the ,00

    Best regards,
    Robin

    Trevor
    #197890
    This reply has been marked as private.
    Anonymous
    #197896
    This reply has been marked as private.
    Trevor
    #197908
    This reply has been marked as private.
    Anonymous
    #198081
    This reply has been marked as private.
    Trevor
    #198084

    OK. I will go ahead and close this thread.

Viewing 10 posts – 1 through 10 (of 10 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.