WOOF: Show toggle button / How to make more Mobile friendly.
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 wpallweb on December 18, 2020, 04:07Hi Woof,
First off, AWESOME Product Filter. LOVE IT!!!!I want the make this a little more Mobile friendly.
My Questions:1. How do I Make the Product Filter Toggle Button come up CLOSED ON Mobile ONLY?
2. How do I make it so that the Mobile Toggle will CLOSE(Collapse) Automatically upon making my selection(s)? (This may mean that I also need a way to set Auto Submit off on Mobile Only as well).Some Side Notes:
Work-around: I was able to create a separate Sidebar area in WordPress. I'm able to now have 2 Sidebars (1 for desktop & 1 for mobile). The Sidebar options for Woof gave me some flexibility to set some of the Sidebar options for desktop and mobile separately. This gets me most of the way there. Is there a way to execute a script of something on "mobile only" so that the Toggle closes when you click on the FILTER button?
Also, if there is a more elegant solution for all this, please share it.
Thanks in advance!
wpallweb
Hi Woof,
First off, AWESOME Product Filter. LOVE IT!!!!
I want the make this a little more Mobile friendly.
My Questions:
1. How do I Make the Product Filter Toggle Button come up CLOSED ON Mobile ONLY?
2. How do I make it so that the Mobile Toggle will CLOSE(Collapse) Automatically upon making my selection(s)? (This may mean that I also need a way to set Auto Submit off on Mobile Only as well).
Some Side Notes:
Work-around: I was able to create a separate Sidebar area in WordPress. I'm able to now have 2 Sidebars (1 for desktop & 1 for mobile). The Sidebar options for Woof gave me some flexibility to set some of the Sidebar options for desktop and mobile separately. This gets me most of the way there. Is there a way to execute a script of something on"mobile only" so that the Toggle closes when you click on the FILTER button?
Also, if there is a more elegant solution for all this, please share it.
Thanks in advance!
wpallweb
Quote from Pablo Borysenco on December 18, 2020, 13:04Hello
- Read this please - https://products-filter.com/hook/woof_block_toggle_state/
- How do I make it so that the Mobile Toggle will CLOSE(Collapse) Automatically upon making my selection(s) - you need code customization. This may mean that I also need a way to set Auto Submit off on Mobile Only as well - Use different shortcodes depending on the device [woof autosubmit=1] AND [woof autosubmit=0]
so that the Toggle closes when you click on the FILTER button? - You need customization of JS code. Unfortunately we do not have a ready-made solution for you
Hello
- Read this please - https://products-filter.com/hook/woof_block_toggle_state/
- How do I make it so that the Mobile Toggle will CLOSE(Collapse) Automatically upon making my selection(s) - you need code customization. This may mean that I also need a way to set Auto Submit off on Mobile Only as well - Use different shortcodes depending on the device [woof autosubmit=1] AND [woof autosubmit=0]
so that the Toggle closes when you click on the FILTER button? - You need customization of JS code. Unfortunately we do not have a ready-made solution for you
Quote from wpallweb on December 18, 2020, 19:45Pablo,
I applied the woof_block_toggle_state/ code. Thanks.
Actually, it does close the Product Filter Toggle when you make a selection on Mobile. This is what I wanted.
(Product Categories) Is there a way to have (or to set) a Category Preselected as the default for the Product Filter (i.e. All Products (Category))?
Thanks in advance.
wpallweb
Pablo,
I applied the woof_block_toggle_state/ code. Thanks.
Actually, it does close the Product Filter Toggle when you make a selection on Mobile. This is what I wanted.
(Product Categories) Is there a way to have (or to set) a Category Preselected as the default for the Product Filter (i.e. All Products (Category))?
Thanks in advance.
wpallweb
Quote from Pablo Borysenco on December 21, 2020, 14:00Hello
Please read this(attr: taxonomies) - https://products-filter.com/shortcode/woof/
OR - https://products-filter.com/manipulate-search-data-options/
Hello
Please read this(attr: taxonomies) - https://products-filter.com/shortcode/woof/
OR - https://products-filter.com/manipulate-search-data-options/
Quote from wpallweb on December 21, 2020, 17:39I added the following code to my functions.php file and it's not working.
I want to set "All Products" (all_products) as my default. Ajax is turned off in my product options as far as I can tell.
https://d-r-o.allweb.solutions/
Am I missing something?
https://products-filter.com/manipulate-search-data-options/
// WOOF - Change Product Filter Menu "All Products" as default if (is_front_page()) { add_filter('woof_get_request_data', 'my_woof_get_request_data'); } function my_woof_get_request_data($request) { $request['product_cat'] = 'all_products'; //$request['product_cat']='music,posters'; return $request; };
I added the following code to my functions.php file and it's not working.
I want to set"All Products" (all_products) as my default. Ajax is turned off in my product options as far as I can tell.
https://d-r-o.allweb.solutions/
Am I missing something?
https://products-filter.com/manipulate-search-data-options/
// WOOF - Change Product Filter Menu"All Products" as default
if (is_front_page())
{
add_filter('woof_get_request_data', 'my_woof_get_request_data');
}
function my_woof_get_request_data($request)
{
$request['product_cat'] = 'all_products';
//$request['product_cat']='music,posters';
return $request;
};
Quote from Pablo Borysenco on December 22, 2020, 12:23Hello
To test please try this code:
add_filter('woof_get_request_data', 'my_woof_get_request_data'); function my_woof_get_request_data($request) { $request['product_cat'] = 'all_products'; //$request['product_cat']='music,posters'; return $request; };is_front_page() - this function that only works when available global wp_query
Hello
To test please try this code:
add_filter('woof_get_request_data', 'my_woof_get_request_data');
function my_woof_get_request_data($request)
{
$request['product_cat'] = 'all_products';
//$request['product_cat']='music,posters';
return $request;
};
is_front_page() - this function that only works when available global wp_query