diff --git a/packages/Sarga/Shop/src/Repositories/ProductRepository.php b/packages/Sarga/Shop/src/Repositories/ProductRepository.php index 9916b10f5..31cfbda87 100644 --- a/packages/Sarga/Shop/src/Repositories/ProductRepository.php +++ b/packages/Sarga/Shop/src/Repositories/ProductRepository.php @@ -102,6 +102,10 @@ class ProductRepository extends WProductRepository $qb->whereIn('product_flat.brand_id', explode(',', $params['brand'])); } + if(isset($params['cinsiyet'])) { + $qb->whereIn('product_flat.cinsiyet', explode(',', $params['cinsiyet'])); + } + if(isset($params['discount']) && $params['discount']){ $qb->whereNotNull('product_flat.special_price') ->where('product_flat.special_price','>',0); @@ -185,6 +189,8 @@ class ProductRepository extends WProductRepository ->getProductDefaultAttributes(array_keys( request()->except([ 'price', + 'brand_id', + 'cinsiyet' // 'color', // 'size' ])