Star working on category tree
This commit is contained in:
1 parent
f3169bcb32
commit
1e4815d47a
1 file changed
+1
-1
@@ -31,7 +31,7 @@ final class CategoryController extends BaseController
|
||||
$categoriesTree = $this->addToTree($product->categories, $categoriesTree);
|
||||
}
|
||||
|
||||
return $this->render('productList.html.twig', ['products' => $products, 'listType' => 'category_' . $category]);
|
||||
return $this->render('productList.html.twig', ['products' => $products, 'listType' => 'category_' . $category, 'categoryTree' => $categoriesTree]);
|
||||
}
|
||||
|
||||
private function addToTree(array $categories, mixed $categoriesTree)
|
||||
|
||||
Reference in new issue
Block a user