Commit a41092729797999c6b75c2ccaf94f6c29510306c
1 parent
8c0d4c19
-Price range enabled +- 30%
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
common/modules/product/helpers/ProductHelper.php
... | ... | @@ -153,8 +153,8 @@ |
153 | 153 | 1, |
154 | 154 | ]) |
155 | 155 | ->andWhere([ 'product_category.category_id' => $product_categories ]); |
156 | - // $query->andWhere(['>=', 'product_variant.price', $product->enabledVariant->price * 0.7]); | |
157 | - // $query->andWhere(['<=', 'product_variant.price', $product->enabledVariant->price * 1.3]); | |
156 | + $query->andWhere(['>=', 'product_variant.price', $product->enabledVariant->price * 0.7]); | |
157 | + $query->andWhere(['<=', 'product_variant.price', $product->enabledVariant->price * 1.3]); | |
158 | 158 | |
159 | 159 | $query->innerJoin('product_option', 'product_option.product_id = product.product_id'); |
160 | 160 | $where = [ ]; | ... | ... |