getTerm('product_cat'); $withoutUncategorized = array_filter($productCats, fn ($c) => $c->slug != "uncategorized"); $topLevelCats = array_filter($withoutUncategorized, fn ($c) => $c->parent == 0); echo site()->render("shop-sub-categories", $topLevelCats); var_dump($topLevelCats); } }