How to build a product category in woocommerce layered navigation?

Hello. I have 66 categories and when you click on ALL, it turns out such a mess, without a hierarchy.
2cef350a884e47b29f5a1f87b7975c2b.jpg362130800e91402f98975d63306bd4e2.jpg

As you can see many items of the categories are just stupid for each other, without attachments, and they are actually in the categories =(

How to make sure that hierarchy was maintained?
Maybe there is some script for function.php ?

--

Partially able to understand, using the favorites tab. Is it possible to increase the FREQUENTLY USED 10 points to 99 for example?
July 8th 19 at 11:31

Find more questions by tags WordPress