fix on shelve with available offers

This commit is contained in:
Ludovic CANDELLIER
2022-04-25 21:59:53 +02:00
parent 328d791b87
commit c9bf18d87d
4 changed files with 68 additions and 2 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()->hasAvailableOffers()->visible()->get()->toTree();
return self::getModel()->defaultOrder()->visible()->get()->toTree();
}
public static function getChildren($data, $withFolder = false)