Commit 82b5496388f9a2230f05d671c4f9753e3b78de2e
1 parent
c3a266dd
big commti
Showing
2 changed files
with
2 additions
and
8 deletions
Show diff stats
frontend/controllers/CatalogController.php
| ... | ... | @@ -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 | 155 | if(!$priceLimits = Yii::$app->cache->get($cacheKey)){ |
| 156 | 156 | |
| 157 | - $priceLimits = $productModel->priceLimits($category, $params); | |
| 157 | + $priceLimits = $productModel->priceLimits($category); | |
| 158 | 158 | |
| 159 | 159 | Yii::$app->cache->set($cacheKey,$priceLimits,3600*24); |
| 160 | 160 | } | ... | ... |
frontend/models/ProductFrontendSearch.php
| ... | ... | @@ -129,12 +129,6 @@ class ProductFrontendSearch extends Product { |
| 129 | 129 | } |
| 130 | 130 | $query->joinWith('variant'); |
| 131 | 131 | |
| 132 | - // Price filter fix | |
| 133 | - unset($params['prices']); | |
| 134 | - | |
| 135 | - ProductHelper::_setQueryParams($query, $params, false); | |
| 136 | - | |
| 137 | - | |
| 138 | 132 | return [ |
| 139 | 133 | 'min' => $query->min(ProductVariant::tableName() .'.price'), |
| 140 | 134 | 'max' => $query->max(ProductVariant::tableName() .'.price'), | ... | ... |