
dealitablow(@dealitablow)
12 Posts
Customers
Quote from dealitablow on October 22, 2019, 14:11
Hello,
I would like please to know which decimal separator should I use ? Is it a coma (,) or a point (.) because I have a review slider with the following values on the address Link:
4 4.2 4.4 4.6 4.8 and 5
And it does not seem to recognize the values 4.2, 4.4, 4.6 and 4.8 although there are products with a meta value of such values.

------------------

----------------

Hello,
I would like please to know which decimal separator should I use ? Is it a coma (,) or a point (.) because I have a review slider with the following values on the address Link:
4 4.2 4.4 4.6 4.8 and 5
And it does not seem to recognize the values 4.2, 4.4, 4.6 and 4.8 although there are products with a meta value of such values.

------------------

----------------


Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on October 23, 2019, 12:30
Hello
Use the point.
And read this please - https://products-filter.com/hook/woof_slider_meta_query_type/
Hello
Use the point.
And read this please - https://products-filter.com/hook/woof_slider_meta_query_type/

dealitablow(@dealitablow)
12 PostsTopic Author
Customers
Quote from dealitablow on October 23, 2019, 13:23
Thank you for your quick ansser. However, I did not quite understand where I am supposed to insert the following provided code:
add_filter('woof_slider_meta_query_type',function($type,$key){
return "DECIMAL(5,3)";
},2,10);
Thank you for your quick ansser. However, I did not quite understand where I am supposed to insert the following provided code:
add_filter('woof_slider_meta_query_type',function($type,$key){
return "DECIMAL(5,3)";
},2,10);

dealitablow(@dealitablow)
12 PostsTopic Author
Customers
Quote from dealitablow on October 23, 2019, 13:53
I figured out that I should put it in the functions.php file of my theme, is it right ?
Also, can you explain a little bit what how this snippet works, especially the line return "DECIMAL(5,3)";
Thank you very much.
I figured out that I should put it in the functions.php file of my theme, is it right ?
Also, can you explain a little bit what how this snippet works, especially the line return "DECIMAL(5,3)";
Thank you very much.

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on October 24, 2019, 12:32
Hello
is it right ? - Yes!
especially the line return "DECIMAL(5,3)"; - this data is transmitted in a meta request and means that the search will occur in fractional numbers. ( https://c2n.me/44fkOhC.png ) - accuracy
Hello
is it right ? - Yes!
especially the line return "DECIMAL(5,3)"; - this data is transmitted in a meta request and means that the search will occur in fractional numbers. ( https://c2n.me/44fkOhC.png ) - accuracy