Commit ba0ed8b76cb5e256f97557658f07e4ce184075d1
1 parent
49f34385
rm node nodule
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
frontend/controllers/CatalogController.php
| ... | ... | @@ -168,9 +168,9 @@ |
| 168 | 168 | /** @var Product $product */ |
| 169 | 169 | $product = Yii::$app->request->get('product'); |
| 170 | 170 | |
| 171 | - if(!$product->enabledVariant) { | |
| 172 | - throw new HttpException(404, 'Товар не найден'); | |
| 173 | - } | |
| 171 | +// if(!$product->enabledVariant) { | |
| 172 | +// throw new HttpException(404, 'Товар не найден'); | |
| 173 | +// } | |
| 174 | 174 | |
| 175 | 175 | ProductHelper::addLastProsucts($product->product_id); |
| 176 | 176 | ... | ... |
frontend/controllers/SearchController.php
| ... | ... | @@ -50,7 +50,7 @@ class SearchController extends \yii\web\Controller |
| 50 | 50 | foreach ($params['keywords'] as $keyword) { |
| 51 | 51 | $categoriesQuery->andWhere(['ilike', 'product.name', $keyword]); |
| 52 | 52 | } |
| 53 | - $categoriesQuery->andWhere(['!=', ProductVariant::tableName() .'.stock', 0]); | |
| 53 | +// $categoriesQuery->andWhere(['!=', ProductVariant::tableName() .'.stock', 0]); | |
| 54 | 54 | $categories = $categoriesQuery->all(); |
| 55 | 55 | } |
| 56 | 56 | ... | ... |