Hello,
I am currently working on a WooCommcere store.
I am creating a sidebar that will contain a structured overview of all categories and their subcategories.
My construct consists of a Nested Looper: provider for the parent category -> provider for subcategories.
The looper provider for the parent categories is already working. Only the parent catgeories (parent =>0) are displayed.
However, the query for the subcategories does not quite work. Although the looper provider is in the consumer of the parent categories, the subcategories of the currently opened category are always shown. Thus, all subcategories are repeated.
How can I customize the looper to show the matching subcategories of the corresponding parent elements?
Thank you!