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

Hiding empty terms without dynamic recount

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,

I'm trying to hide empty terms but i don't want to use the dynamic recount option.

Is there a way to achieve this?

Best regards,

Levi

 

Hello Levi

Paste your license key here - https://c2n.me/43SC6rb.png -> https://c2n.me/42HBIt7.png

Try  in file  - \wp-content\plugins\woocommerce-products-filter\classes\helper.php - change  code - https://c2n.me/4apjoAs.png

Hi Pablo,

The license key is now there.

I've tried your solution by altering the hide_empty value in helper.php but that doesn't seem to change anything. Also the counter shows that there should be 10 products but there aren't any items in there.

I also use the hide empty stock filter, i tought that it could be a problem and turned it of but that doesn't seem to do anything either.

 

Best regards,

Levi

Hello Levi

It looks like you do not understand correctly how dynamic recount works.

If  you  set  - dynamic recount - to  NO - The filter will show a counter of all existing categories, regardless of the current page and the search query( https://c2n.me/4apYNdW.png ) -I've tried your solution by altering the hide_empty value in helper.php - it will not show the terms in which the counter is zero - https://c2n.me/4apZ65F.png

 

 

Hi Pablo,

Okay. So we are clear i want to achieve the following:

Have the dynamic recount set to NO and hide empty terms. I can't use the setting "Hide empty terms" because this depends on the dynamic recount.

(My settings image)

So my question is if there is another way to hide the empty terms?

As you suggested i've set did the following: 'hide_empty' => true,  in the file: \wp-content\plugins\woocommerce-products-filter\classes\helper.php

This didn't change anything. The problem i'm having is that i have the following filter: (my filter) here you can see the size 46.5 but when i select this size i should be seeing products but instead i have a page without any products (image of result)

In this case i would like to remove 46.5 out of the filter list because it's empty.

I hope this clarifies the issue :)

Best regards,

Levi

 

 

 

Hello Levi

(my filter) here you can see the size 46.5 - As you can see this is not an empty attribute! It cannot be hidden without dynamic recalculation.

to hide this term at all - please  use  an option - https://c2n.me/4aqxPOD.png

Please  warch a  video - https://products-filter.com/video-tutorials/#video_beGT6p_look