
webmaker-nn(@webmaker-nn)
2 Posts
Customers
Quote from webmaker-nn on May 17, 2021, 12:47
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.
https://imgur.com/IRuT1OT
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?
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?

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on May 18, 2021, 10:20
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;
}
Вы можете писать на русском языке
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;
}
Вы можете писать на русском языке

webmaker-nn(@webmaker-nn)
2 PostsTopic Author
Customers
Quote from webmaker-nn on May 18, 2021, 10:45
Добрый день, спасибо за ответ!
Добавил
if($level>2){
return;
}
и это помогло.
Добрый день, спасибо за ответ!
Добавил
if($level>2){
return;
}
и это помогло.

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on May 18, 2021, 11:53
Пожалуйста;)
Пожалуйста;)