diff --git a/packages/Sarga/Shop/src/Repositories/ProductRepository.php b/packages/Sarga/Shop/src/Repositories/ProductRepository.php index 108e593a5..0fe6260b3 100644 --- a/packages/Sarga/Shop/src/Repositories/ProductRepository.php +++ b/packages/Sarga/Shop/src/Repositories/ProductRepository.php @@ -94,7 +94,7 @@ class ProductRepository extends WProductRepository // ->whereNotNull('product_flat.url_key'); if ($categoryId) { - $qb->join('product_categories', 'product_categories.product_id', '=', 'product_flat.product_id') + $qb->leftJoin('product_categories', 'product_categories.product_id', '=', 'product_flat.product_id') ->whereIn('product_categories.category_id', explode(',', $categoryId)); }