Commit 17cc59edfa9a727f487dd7446e15575b883f8be1

Authored by Administrator
1 parent 38b2f003

20.07.16

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
common/modules/product/helpers/ProductHelper.php
@@ -99,7 +99,7 @@ class ProductHelper extends Object { @@ -99,7 +99,7 @@ class ProductHelper extends Object {
99 $data = ['akciya' => true]; 99 $data = ['akciya' => true];
100 break; 100 break;
101 } 101 }
102 - return Product::find()->joinWith('variants')->where($data)->andWhere(['!=', ProductVariant::tableName() .'.stock', 0])->limit($count)/*->orderBy($sort)*/->all(); 102 + return Product::find()->joinWith('variants')->where($data)->andWhere(['!=', ProductVariant::tableName() .'.stock', 0])/*->orderBy($sort)*/->all();
103 } 103 }
104 104
105 public static function getSimilarProducts($product, $count = 10) { 105 public static function getSimilarProducts($product, $count = 10) {