cache responces achyklar

This commit is contained in:
merdan 2022-12-17 16:49:26 +05:00
parent 947a401014
commit c3fce53b1e
1 changed files with 4 additions and 4 deletions

View File

@ -106,9 +106,7 @@ class ProductRepository extends WProductRepository
$qb->whereIn('product_flat.cinsiyet', explode(',', $params['cinsiyet']));
}
if(isset($params['discount']) && $params['discount']){
$qb->where('product_flat.special_price','>',0);
}
if (! core()->getConfigData('catalog.products.homepage.out_of_stock_items')) {
$qb = $this->checkOutOfStockItem($qb);
@ -240,7 +238,9 @@ class ProductRepository extends WProductRepository
});
# apply scope query so we can fetch the raw sql and perform a count
if(isset($params['discount']) && $params['discount']){
$repository->where('product_flat.special_price','>',0);
}
$repository->applyScope();