- This topic has 4 replies, 2 voices, and was last updated 5 years, 8 months ago by .
Viewing 5 posts – 1 through 5 (of 5 total)
Viewing 5 posts – 1 through 5 (of 5 total)
Posted
by
Forums › Forums › Search & Filter Pro › ACF text field with prices filter
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?
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?