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

A complete list is being displayed in search results

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!

Upon entering something in the search field, Woof Filters are displaying all the tags and attributes instead of just displaying the product tags and attributes that are relevant to the search results. While the filters are working fine on the category pages. The website that I'm currently working has about 50,000 products and displaying all the tags and attributes in the search results is resulting in large SQL Queries and timeouts.

The Show Count, Dynamic Count and Hide Terms are all enabled but I can't understand why the filters are not working on the search results page. Any idea why this is happening?

Hello

Please disable this third-party text filter  and  activate  this  extension - https://c2n.me/4haX2r9.png

Which third-party text filter?

Hello

Which third-party text filter? - https://share.pluginus.net/image/i20221122104308.png

The problem did not go away even after removing the plugin! Infact Advanced WooCommerce Search (third-party text filter) claim that they are compatible with WOOF. The Husky Search isn't really performing great with large number of products. Causing timeouts etc. I wanna leave it here. While the plugin is good, the server resources are limited so I want to optimise.

Would it be possible to initialize the plugin only on product category pages where the products are less than 2000? I used the option "Init plugin on the next site pages only
" to load only on category pages. I was planning to add a piece of code in index.php of plugin function is_should_init(). Any better way to do it? Please suggest.

Hello

 Infact Advanced WooCommerce Search (third-party text filter) claim that they are compatible with WOOF - We do not have such information. In this case, contact their support

If you want dynamic count to work with text filter - use our text filter

The Husky Search isn't really performing great with large number of products - Please  try  to add  this  code  in  functions.php:

add_filter('woof_husky_query_post__in', function($do){

return false;

});

clear all  cache  and  do a test

Okay. I will try. Is there any way to show the filters only when the products in that category are in certain number? I want to be able to filter using the tags but there are thousands of them. They are all loading on the page. I don't want that to happen. I only want to show filters when there are limited number of products.

Hello

I'm not sure that I understood you correctly

To display only relevant filters on a category page - https://share.pluginus.net/image/i20221201105029.png

to hide the terms - https://share.pluginus.net/image/i20221201105506.png

Okay. I will try to rephrase my question. I added a URL in the private data section. This URL is a category page that has about 4000+ products and hundreds of tags for these products. As there are many products and tags, it is doesn't really make sense to show filters. I would just be wasting resources. Customers can easily filter from sub categories as there are only a few tags.

Now, What I want to achieve is that I want to load filters on all category pages (Not the entire website) and I don't want to show filters on category pages that have more than 2000 products. This way, I won't be loading hundreds of tags in the filters section on category pages that have a ton of products.

Hello

Unfortunately the plugin does not have this feature. in this case you need code customization

 

Okay. Thanks for giving it a thought! I looked at the Init functions and there aren't any hooks to add custom code. If I make changes, to the plugin directly, then future updates to the plugin will overwrite my changes later.

Alternatively, is there a way to use both"Init plugin on the next site pages only" include and exclude functionality? I want to display filters on all category pages but exclude some category pages. In other words show only on a subset of categories. If I add URL's directly in the allowed list, there are about 750 of them. Each request has to go through hundreds of iterations which will burden the  server and its resources.

Hello

In next version I can add this hook - https://c2n.me/4hidnQD.png

Hi Pablo, Thanks for the hook! Will this hook stop the initialization? I did not read the code completely so I don't know. You'd know better. Could you also please share the snippet to control this setting from the functions.php?

Does this piece of code look right to you?

if( is_product_category( 'category1-slug' ) || is_product_category( 'category2-slug' ) ) {
add_filter( 'woof_disable_filter', true );
}

Hello

This hook will prevent the filter from being initialized on the frontend

An example:

add_filter( 'woof_disable_filter', function($hide) {

if($check_page_to_hide) {

$hide = true;

}

return $hide;

} );

Thanks Pablo! When are you going to release the new plugin update?

hello

Unfortunately, I can't give an exact date. I guess it will be early 2023

Great! Please don't forget to add this piece of code in your next update.

Thanks!

Hello

I already passed this to the developers