diff --git a/frontend/controllers/CatalogController.php b/frontend/controllers/CatalogController.php index 0eb1aed..cc50d81 100755 --- a/frontend/controllers/CatalogController.php +++ b/frontend/controllers/CatalogController.php @@ -152,9 +152,6 @@ class CatalogController extends \yii\web\Controller /** @var Product $product */ $product = Yii::$app->request->get('product'); - if(!$product->enabledVariant) { - throw new HttpException(404, 'Товар не найден'); - } ProductHelper::addLastProsucts($product->product_id); diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index fbadbb7..6c45319 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -191,7 +191,11 @@ FlipclockAsset::register($this);