This commit is contained in:
2025-07-18 15:52:26 -07:00
parent c8326c0790
commit 38794c413a

View File

@@ -38,8 +38,9 @@ class ShopPageShowCatsInsteadAction extends RadAction
$withoutUncategorized = array_filter($productCats, fn ($c) => $c->slug != "uncategorized"); $withoutUncategorized = array_filter($productCats, fn ($c) => $c->slug != "uncategorized");
$topLevelCats = array_filter($withoutUncategorized, fn ($c) => $c->parent == 0); $topLevelCats = array_filter($withoutUncategorized, fn ($c) => $c->parent == 0);
// echo
foreach ($topLevelCats as $cat) { foreach ($topLevelCats as $cat) {
echo site()->render("page-tile", $cat); echo "<div class='col'>".site()->render("page-tile", $cat)."</div>";
} }
// var_dump($topLevelCats); // var_dump($topLevelCats);
} }