This commit is contained in:
2025-07-18 15:46:04 -07:00
parent 06ccdb32ac
commit 796db46e30

View File

@@ -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);
}
}