From a41092729797999c6b75c2ccaf94f6c29510306c Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 3 Feb 2017 13:04:57 +0200 Subject: [PATCH] -Price range enabled +- 30% --- common/modules/product/helpers/ProductHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/modules/product/helpers/ProductHelper.php b/common/modules/product/helpers/ProductHelper.php index 8afe692..df04b02 100755 --- a/common/modules/product/helpers/ProductHelper.php +++ b/common/modules/product/helpers/ProductHelper.php @@ -153,8 +153,8 @@ 1, ]) ->andWhere([ 'product_category.category_id' => $product_categories ]); - // $query->andWhere(['>=', 'product_variant.price', $product->enabledVariant->price * 0.7]); - // $query->andWhere(['<=', 'product_variant.price', $product->enabledVariant->price * 1.3]); + $query->andWhere(['>=', 'product_variant.price', $product->enabledVariant->price * 0.7]); + $query->andWhere(['<=', 'product_variant.price', $product->enabledVariant->price * 1.3]); $query->innerJoin('product_option', 'product_option.product_id = product.product_id'); $where = [ ]; -- libgit2 0.21.4