PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

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 please
If 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.

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

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

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.

 

 

 

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')

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

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()

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.

 

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/