From b18eb5beb57a9ddf136005914d4e5a2ce75c9e9f Mon Sep 17 00:00:00 2001 From: Kurtis Holsapple Date: Fri, 18 Jul 2025 15:48:14 -0700 Subject: [PATCH] changes --- actions/ShopPageShowCatsInsteadAction.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/ShopPageShowCatsInsteadAction.php b/actions/ShopPageShowCatsInsteadAction.php index 5aab277..ba83f75 100644 --- a/actions/ShopPageShowCatsInsteadAction.php +++ b/actions/ShopPageShowCatsInsteadAction.php @@ -38,9 +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", [ - "children" => $topLevelCats, - ]); - var_dump($topLevelCats); + foreach ($topLevelCats as $cat) { + echo site()->render("page-tile", $cat); + } + // var_dump($topLevelCats); } }