diff --git a/app/Models/Shop/Article.php b/app/Models/Shop/Article.php index ce96725a..42e870ac 100644 --- a/app/Models/Shop/Article.php +++ b/app/Models/Shop/Article.php @@ -218,7 +218,7 @@ class Article extends Model implements HasMedia public function scopeWithAvailableOffers($query, $saleChannelId = false) { - return $query->whereHas('offers', function ($query) use ($saleChannelId) { + return $query->visible()->whereHas('offers', function ($query) use ($saleChannelId) { $query->active()->byStockAvailable(); if ($saleChannelId) {