Forums › Forums › Search & Filter Pro › Working with decimal numbers
- This topic has 9 replies, 2 voices, and was last updated 6 years, 1 month ago by
Trevor.
-
Anonymous(Private) January 3, 2019 at 11:27 am #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,
RobinTrevor(Private) January 3, 2019 at 1:24 pm #197876What 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(Private) January 3, 2019 at 2:09 pm #197883Hi 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 -
AuthorPosts