I would like to hide some filters in specific categories
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 Gabriele on September 17, 2022, 17:09Hi, I have the pro version of the plugin, and I need to hide or show filters in some categories. For example, hide a slider filter on some product categories, or vice versa show a certain filter for a single product category. Obviously I'm not talking about hiding with "exclude terms ids", which shows or hides but only as a search, I need to hide all the single filter from the search (label and value).
Thanks you for support
Hi, I have the pro version of the plugin, and I need to hide or show filters in some categories. For example, hide a slider filter on some product categories, or vice versa show a certain filter for a single product category. Obviously I'm not talking about hiding with"exclude terms ids", which shows or hides but only as a search, I need to hide all the single filter from the search (label and value).
Thanks you for support
Quote from Pablo Borysenco on September 19, 2022, 12:31Hello
Please paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png
1) In category pages use shortcode - [woof_products] with attribute : taxonomies=product_cat:X Where X id your product category. ( if you use custom page )
2) In widgets use shortcode [woof] with attribute : * taxonomies=product_cat:X
+
tax_only - write taxonomies or products slug using comma
+
by_only - write any by-filter-elements there using comma: by_text,by_price,by_sku,by_author,by_insales,by_instock. Of course firstly user should enable extensions for that by-filter-elements
*- Do not forget set the same condition in [woof_products]3) For show or hide widgets on different pages - http://www.woocommerce-filter.com/how-to-show-or-hide-widget-only-on-selected-site-pages/
You can read more about shortcodes - https://products-filter.com/shortcode/woof AND https://products-filter.com/shortcode/woof_products
Hello
Please paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png
1) In category pages use shortcode - [woof_products] with attribute : taxonomies=product_cat:X Where X id your product category. ( if you use custom page )
2) In widgets use shortcode [woof] with attribute : * taxonomies=product_cat:X
+
tax_only - write taxonomies or products slug using comma
+
by_only - write any by-filter-elements there using comma: by_text,by_price,by_sku,by_author,by_insales,by_instock. Of course firstly user should enable extensions for that by-filter-elements
*- Do not forget set the same condition in [woof_products]
3) For show or hide widgets on different pages - http://www.woocommerce-filter.com/how-to-show-or-hide-widget-only-on-selected-site-pages/
You can read more about shortcodes - https://products-filter.com/shortcode/woof AND https://products-filter.com/shortcode/woof_products
Quote from Gabriele on September 21, 2022, 12:15Hi Pablo,
Thanks for your quick response. Unfortunately I have display problems. My situation is this:
I am only using the "product sidebar" widget where I have inserted the shortcode to display some filters on a single category page ("catenarie").
The code is this, and it works:[woof tax_only='pa_lunghezza,pa_alimentazione,pa_colore-led,pa_numero-attacchi']
At the same time i also installed Widget Logic plugin, and put the code in the sidebar:
is_product_category(array('catenarie'))
The filters are shown correctly in the sidebar and on the right page, the problem is that in the search results page and in the single product page the filters disappear.
How can I do?In general, can you confirm that I have to do this for each category page?
Thank you very much.
Hi Pablo,
Thanks for your quick response. Unfortunately I have display problems. My situation is this:
I am only using the"product sidebar" widget where I have inserted the shortcode to display some filters on a single category page ("catenarie").
The code is this, and it works:
[woof tax_only='pa_lunghezza,pa_alimentazione,pa_colore-led,pa_numero-attacchi']
At the same time i also installed Widget Logic plugin, and put the code in the sidebar:
is_product_category(array('catenarie'))
The filters are shown correctly in the sidebar and on the right page, the problem is that in the search results page and in the single product page the filters disappear.
How can I do?
In general, can you confirm that I have to do this for each category page?
Thank you very much.
Quote from Pablo Borysenco on September 22, 2022, 11:24Hello
Try to add:
isset($_GET['really_curr_tax'] ) && $_GET['really_curr_tax'] == 'XX-product_cat' where XX is ID of the current category
an example:
is_product_category(array('catenarie')) || (isset($_GET['really_curr_tax'] ) && $_GET['really_curr_tax'] == '245-product_cat')
Hello
Try to add:
isset($_GET['really_curr_tax'] ) && $_GET['really_curr_tax'] == 'XX-product_cat' where XX is ID of the current category
an example:
is_product_category(array('catenarie')) || (isset($_GET['really_curr_tax'] ) && $_GET['really_curr_tax'] == '245-product_cat')
Quote from Gabriele on September 23, 2022, 15:05Hi,
thank you very much! With your code that i pasted in Widget Logic field I solved with the display in search results, instead it still doesn't show on the single product page.
Any suggestions?
Thanks a lot
Hi,
thank you very much! With your code that i pasted in Widget Logic field I solved with the display in search results, instead it still doesn't show on the single product page.
Any suggestions?
Thanks a lot
Quote from Pablo Borysenco on September 26, 2022, 11:39Hello
ok! so add is_product()
is_product_category(array('catenarie')) || (isset($_GET['really_curr_tax'] ) && $_GET['really_curr_tax'] == '245-product_cat') || is_product()
Hello
ok! so add is_product()
is_product_category(array('catenarie')) || (isset($_GET['really_curr_tax'] ) && $_GET['really_curr_tax'] == '245-product_cat') || is_product()
Quote from Gabriele on September 28, 2022, 15:22Hello,
Thank you, || is_product() works, however in this way you see those filters in all individual products of all categories (but not on the category pages), it would be perfect if you could specify further, example:
|| is_product ('catenaries'), but I guess it can't be written like thatWhat do you think about it? Solutions?
I thank you again for your support.
Hello,
Thank you, || is_product() works, however in this way you see those filters in all individual products of all categories (but not on the category pages), it would be perfect if you could specify further, example:
|| is_product ('catenaries'), but I guess it can't be written like that
What do you think about it? Solutions?
I thank you again for your support.
Quote from Pablo Borysenco on September 29, 2022, 10:50Hello
In this case, you'd better ask in the support of this third-party plugin - Widget logic
Read this - https://woocommerce.com/document/conditional-tags/
Hello
In this case, you'd better ask in the support of this third-party plugin - Widget logic
Read this - https://woocommerce.com/document/conditional-tags/