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

How can I only display the first 3 categories in hierarchy dropdown

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, help me please.
I have 5 levels of categories at my site, but i need to display only the first 3 of them.
Here is the screen of site.
https://imgur.com/OFgDmDQ
Now everything looks as it should, but after I select the categories I need, the next dropdown appears.

View post on imgur.com


I used the"exclude ids terms" settings, but it didn't help. The unnecessary drop-down list no longer displays child categories, but the unnecessary drop-down menu itself still appears.
So, how can I only display the first 3 drop-downs?

Hello

I used the"exclude ids terms" settings, but it didn't help - Please drop me  screenshots  of  this  setting

Or  use  this  hook  to  exclude  terms - https://products-filter.com/hook/woof_sort_terms_before_out/

OR

in  file  - \wp-content\plugins\woocommerce-products-filter\ext\select_hierarchy\views\woof.php - add  code - https://share.pluginus.net/image/i20210518111902.png

if($level>3){
return;
}

Вы  можете  писать  на  русском языке

Добрый день, спасибо за ответ!
Добавил
if($level>2){
return;
}
и это помогло.

Пожалуйста;)