This commit is contained in:
2025-07-18 15:53:19 -07:00
parent 38794c413a
commit a4e5504b81

View File

@@ -38,10 +38,11 @@ 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 echo "<div class='row'>";
foreach ($topLevelCats as $cat) { foreach ($topLevelCats as $cat) {
echo "<div class='col'>".site()->render("page-tile", $cat)."</div>"; echo "<div class='col'>".site()->render("page-tile", $cat)."</div>";
} }
echo "</div>";
// var_dump($topLevelCats); // var_dump($topLevelCats);
} }
} }