ACF text field with prices filter

Forums › Forums › Search & Filter Pro › ACF text field with prices filter

Viewing 5 posts – 1 through 5 (of 5 total)
  • Anonymous
    #274954

    Hi there,

    On a website we use an ACF text field where product prices are added in the following format: 1.000 (1000 euro’s with a dot as thousands separator).

    This field is added to the filter as a range – slider input type, but search and filter doesn’t auto detect the right min-max values and i cannot figure out why that happens. Also when i put the slider on specific from/to values, it doesn’t filter properly. Can you help us out with this issue?

    Anonymous
    #274955
    This reply has been marked as private.
    Trevor
    #274958

    With a dot in the data (as the thousands separator), it will be seen as a decimal point, so 1.000 will actually be seen as 1. You must not use the dot for a thousands separator for data storage. You can format data when displaying it to add that separator instead.

    If you had 1.000.10 it would be seen as a text string, and thus not searchable as a number at all.

    Maybe this is the problem?

    Anonymous
    #275032
    This reply has been marked as private.
    Trevor
    #275036

    Thanks for getting back to me. I will close this thread for now.

Viewing 5 posts – 1 through 5 (of 5 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.