Commit 82b5496388f9a2230f05d671c4f9753e3b78de2e

Authored by Administrator
1 parent c3a266dd

big commti

frontend/controllers/CatalogController.php
@@ -150,11 +150,11 @@ class CatalogController extends \yii\web\Controller @@ -150,11 +150,11 @@ class CatalogController extends \yii\web\Controller
150 150
151 151
152 152
153 - $cacheKey = ['ActiveProperties','id' => $category, 'params' => $params]; 153 + $cacheKey = ['ActiveProperties','id' => $category];
154 154
155 if(!$priceLimits = Yii::$app->cache->get($cacheKey)){ 155 if(!$priceLimits = Yii::$app->cache->get($cacheKey)){
156 156
157 - $priceLimits = $productModel->priceLimits($category, $params); 157 + $priceLimits = $productModel->priceLimits($category);
158 158
159 Yii::$app->cache->set($cacheKey,$priceLimits,3600*24); 159 Yii::$app->cache->set($cacheKey,$priceLimits,3600*24);
160 } 160 }
frontend/models/ProductFrontendSearch.php
@@ -129,12 +129,6 @@ class ProductFrontendSearch extends Product { @@ -129,12 +129,6 @@ class ProductFrontendSearch extends Product {
129 } 129 }
130 $query->joinWith('variant'); 130 $query->joinWith('variant');
131 131
132 - // Price filter fix  
133 - unset($params['prices']);  
134 -  
135 - ProductHelper::_setQueryParams($query, $params, false);  
136 -  
137 -  
138 return [ 132 return [
139 'min' => $query->min(ProductVariant::tableName() .'.price'), 133 'min' => $query->min(ProductVariant::tableName() .'.price'),
140 'max' => $query->max(ProductVariant::tableName() .'.price'), 134 'max' => $query->max(ProductVariant::tableName() .'.price'),