diff --git a/frontend/controllers/CatalogController.php b/frontend/controllers/CatalogController.php index b34677e..1cab64f 100755 --- a/frontend/controllers/CatalogController.php +++ b/frontend/controllers/CatalogController.php @@ -168,9 +168,9 @@ /** @var Product $product */ $product = Yii::$app->request->get('product'); - if(!$product->enabledVariant) { - throw new HttpException(404, 'Товар не найден'); - } +// if(!$product->enabledVariant) { +// throw new HttpException(404, 'Товар не найден'); +// } ProductHelper::addLastProsucts($product->product_id); diff --git a/frontend/controllers/SearchController.php b/frontend/controllers/SearchController.php index a60e80c..cf3cdbf 100755 --- a/frontend/controllers/SearchController.php +++ b/frontend/controllers/SearchController.php @@ -50,7 +50,7 @@ class SearchController extends \yii\web\Controller foreach ($params['keywords'] as $keyword) { $categoriesQuery->andWhere(['ilike', 'product.name', $keyword]); } - $categoriesQuery->andWhere(['!=', ProductVariant::tableName() .'.stock', 0]); +// $categoriesQuery->andWhere(['!=', ProductVariant::tableName() .'.stock', 0]); $categories = $categoriesQuery->all(); } -- libgit2 0.21.4