Number slider does not work
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from billt on September 3, 2019, 15:09Hello!
I am trying to set up slider-based filters for various dimensions in my store (diameters, thicknesses, etc. -- all made with ACF fields). The one that I am running as a test does not appear to function properly -- dragging the slider down from the max value does not filter anything out, while dragging it up at all from the min value filters out everything. The numbers involved are very small (like .005), so I don't know if that has something to do with it or not. I have changed the range and the step to fit the content. What am I doing wrong?
Hello!
I am trying to set up slider-based filters for various dimensions in my store (diameters, thicknesses, etc. -- all made with ACF fields). The one that I am running as a test does not appear to function properly -- dragging the slider down from the max value does not filter anything out, while dragging it up at all from the min value filters out everything. The numbers involved are very small (like .005), so I don't know if that has something to do with it or not. I have changed the range and the step to fit the content. What am I doing wrong?
Quote from billt on September 4, 2019, 17:27Update: I created a test custom product field (via functions.php, to test whether the ACF fields were causing the issue) and populated a couple of products with that info and tried filtering using that, but it still did not work.
Update: I created a test custom product field (via functions.php, to test whether the ACF fields were causing the issue) and populated a couple of products with that info and tried filtering using that, but it still did not work.
Quote from Pablo Borysenco on September 4, 2019, 19:15Hello
I did some tests!
It looks like the problem is that it is a float number.
we need a little more time for research. I will write to you as soon as the result is
Hello
I did some tests!
It looks like the problem is that it is a float number.
we need a little more time for research. I will write to you as soon as the result is
Quote from billt on September 5, 2019, 20:05I have tried a different method on a slightly different URL -- I have added that new URL to the private data.
Basically, I have added new fields where each of those custom field figures are multiplied by 10,000, making them not have long decimals any more. That method allows the filters to work, so unless you have come up with a more elegant solution (there are some quirks in the UX because of this), I might go that route instead.
Additional question: is there a way to add more content between the various sliders? I would like to have more wording (beyond what is already there) and styling in between. Is there a template I can alter, or can I call each slider individually so I can alter the template for the sidebar?
One other thing -- you have another plugin where the slider has number fields that update the min and max values dynamically as the slider is changed. Is it possible to use that with WOOF?
Thank you for all your help!
I have tried a different method on a slightly different URL -- I have added that new URL to the private data.
Basically, I have added new fields where each of those custom field figures are multiplied by 10,000, making them not have long decimals any more. That method allows the filters to work, so unless you have come up with a more elegant solution (there are some quirks in the UX because of this), I might go that route instead.
Additional question: is there a way to add more content between the various sliders? I would like to have more wording (beyond what is already there) and styling in between. Is there a template I can alter, or can I call each slider individually so I can alter the template for the sidebar?
One other thing -- you have another plugin where the slider has number fields that update the min and max values dynamically as the slider is changed. Is it possible to use that with WOOF?
Thank you for all your help!
Quote from Pablo Borysenco on September 6, 2019, 13:21Hello
I solved this problem. This will be included in the new version.
You need to add this code in functions.php :
add_filter('woof_slider_meta_query_type',function($type,$key){
return "DECIMAL(5,3)";
},2,10);the filter is formed in this file - \plugins\woocommerce-products-filter\views\woof.php
Is it possible to use that with WOOF? - Unfortunately not
Hello
I solved this problem. This will be included in the new version.
You need to add this code in functions.php :
add_filter('woof_slider_meta_query_type',function($type,$key){
return"DECIMAL(5,3)";
},2,10);
the filter is formed in this file - \plugins\woocommerce-products-filter\views\woof.php
Is it possible to use that with WOOF? - Unfortunately not
Quote from billt on September 11, 2019, 17:23I appreciate you looking into it!
Unfortunately, after adding that code to functions.php, I didn't see any change in behavior, so for now I plan to go with the method I spelled out before just so I can keep moving on it. I will keep an eye out for the new version, though.
Again, thank you for your help!
I appreciate you looking into it!
Unfortunately, after adding that code to functions.php, I didn't see any change in behavior, so for now I plan to go with the method I spelled out before just so I can keep moving on it. I will keep an eye out for the new version, though.
Again, thank you for your help!
Quote from Pablo Borysenco on September 12, 2019, 13:21Hello
This will work in the new version.
The release of the new version will be soon
Hello
This will work in the new version.
The release of the new version will be soon