fix on empty shelve

This commit is contained in:
Ludovic CANDELLIER
2022-04-25 20:46:18 +02:00
parent e22a541342
commit 328d791b87
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ class Categories
public static function getByHomepage()
{
return Category::visible()->homepage()->orderBy('name', 'asc')->get();
return Category::hasAvailableOffers()->visible()->homepage()->orderBy('name', 'asc')->get();
}
public static function getAll()