Fixes on available offers in category childrens for building menu

This commit is contained in:
Ludovic CANDELLIER
2022-04-25 22:36:43 +02:00
parent c9bf18d87d
commit 61a52ef330
3 changed files with 5 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ class Categories
public static function getCategoryTreeVisibles($sale_channel_id = false)
{
// return self::getModel()->defaultOrder()->visible()->hasAvailableOffers($sale_channel_id)->get()->toTree();
return self::getModel()->defaultOrder()->visible()->get()->toTree();
return self::getModel()->defaultOrder()->hasAvailableOffersByCategoryParent($sale_channel_id)->visible()->get()->toTree();
}
public static function getChildren($data, $withFolder = false)