changes
This commit is contained in:
@@ -38,9 +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 site()->render("shop-sub-categories", [
|
foreach ($topLevelCats as $cat) {
|
||||||
"children" => $topLevelCats,
|
echo site()->render("page-tile", $cat);
|
||||||
]);
|
}
|
||||||
var_dump($topLevelCats);
|
// var_dump($topLevelCats);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user