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

Hide single-choice filter options

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.

Hello there!

We are using the Pro version of your plugin, and it works great. However, I have a question about if it's possible to hide single-choice filter options.

Like we have a gender filter option, which has two options: Men and Women. There is no sense in showing this gender filter for the Men and Women categories since it's only one choice for the (even if there are available products for this option https://i.imgur.com/mKRK23E.png). The same applies to other filter options, like Type on my screenshot.

Thanks in advance!

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

Drop me exact link to the issue

Hello Pablo, thanks for your reply!

Our dev said that he used the free version of the plugin, so we don't have the license key I guess.

I added the link to the page where you can see the single-choice options.

 

Hello

You are using a paid version of the plugin. Unfortunately, we do not support products without the license.

Yep, that's totally understandable.

Is there a way to check if we are using a paid version of the plugin? And where could the dev bought it?

If you could advise where the plugin could be purchased (if we are using a paid version of the plugin already), so we can check our accounts there?

Thanks in advance!

Hello Pablo,

Sorry for the misunderstanding, I found out that the plugin was purchased on the ThemeForest website.

I attached the item purchased code, is it good? The plugin was purchased on at 2024-11-08 12:21:13 UTC.

Please drop me wp-admin access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png

Added.

Hello

I checked the filter, everything works correctly.

mens-knitwear  and  men - have no connection, only human logic based on similar words.  so instead of men there can be any text, for example black or summer or eco and there is no point in removing this filter from the category

Hello, thanks for your check!

The point is - that's what was my client asked. So that's why I'm asking you, if that is possible - can we remove filter option AT ALL from the displaying, if there is only one available choice for it?

So on the page I sent you, I want to hide the Gender filter at all, as well as the Type filter.

Thanks!

Hello

Unfortunately, the plugin does not have such a feature. In this case, you need to customize the plugin code

You can use this hook - https://products-filter.com/hook/woof_sort_terms_before_out

Hello Pablo, thanks!

Just to clarify, can I use it on functions.php somehow, or do I need to change the plugin's code directly?

I added the hook that you can use in functions.php