cache responces achyklar

This commit is contained in:
merdan 2022-12-17 12:13:40 +05:00
parent 324e48e39b
commit 427d7bfc79
1 changed files with 6 additions and 0 deletions

View File

@ -102,6 +102,10 @@ class ProductRepository extends WProductRepository
$qb->whereIn('product_flat.brand_id', explode(',', $params['brand'])); $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']){ if(isset($params['discount']) && $params['discount']){
$qb->whereNotNull('product_flat.special_price') $qb->whereNotNull('product_flat.special_price')
->where('product_flat.special_price','>',0); ->where('product_flat.special_price','>',0);
@ -185,6 +189,8 @@ class ProductRepository extends WProductRepository
->getProductDefaultAttributes(array_keys( ->getProductDefaultAttributes(array_keys(
request()->except([ request()->except([
'price', 'price',
'brand_id',
'cinsiyet'
// 'color', // 'color',
// 'size' // 'size'
]) ])