diff --git a/actions/ShopPageShowCatsInsteadAction.php b/actions/ShopPageShowCatsInsteadAction.php index 93dbcfb..5aab277 100644 --- a/actions/ShopPageShowCatsInsteadAction.php +++ b/actions/ShopPageShowCatsInsteadAction.php @@ -38,7 +38,9 @@ class ShopPageShowCatsInsteadAction extends RadAction $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); + echo site()->render("shop-sub-categories", [ + "children" => $topLevelCats, + ]); var_dump($topLevelCats); } }