diff --git a/common/modules/product/widgets/views/product_smart.php b/common/modules/product/widgets/views/product_smart.php
index a835c17..906cbba 100755
--- a/common/modules/product/widgets/views/product_smart.php
+++ b/common/modules/product/widgets/views/product_smart.php
@@ -9,9 +9,7 @@ use yii\helpers\Url;
@@ -43,8 +41,7 @@ use yii\helpers\Url;
есть на складе
-
-
+
Код: =$product->variant->sku?>
@@ -53,22 +50,11 @@ use yii\helpers\Url;
= $product->variant->price ?> грн
-
+
-
- //=$product->variant->product_variant_id; ?>
-
-
-
-
-
-
-
-
-
-
+
diff --git a/common/modules/product/widgets/views/products_block.php b/common/modules/product/widgets/views/products_block.php
index cad58f2..865159b 100755
--- a/common/modules/product/widgets/views/products_block.php
+++ b/common/modules/product/widgets/views/products_block.php
@@ -1,44 +1,25 @@
+
-
-
-
-
+
+
//= $title?>
-
-
+
+
= $this->render('product_smart', ['product' => $product]);?>
-
-
-
-
- registerJs($js, View::POS_READY);
- ?>
+
+
+
+
+
diff --git a/frontend/controllers/AjaxController.php b/frontend/controllers/AjaxController.php
index 48ec1e7..9dc0e13 100755
--- a/frontend/controllers/AjaxController.php
+++ b/frontend/controllers/AjaxController.php
@@ -4,7 +4,7 @@ namespace frontend\controllers;
use common\models\Feedback;
use yii\web\Controller;
-
+use \common\modules\product\widgets\specialProducts;
class AjaxController extends Controller
{
public function actionFeedback() {
@@ -33,4 +33,17 @@ class AjaxController extends Controller
$response->statusText = 'Empty request';
return ['error' => 'Empty request'];
}
+
+
+ public function actionNew(){
+ return specialProducts::widget(['type' => 'new']);
+ }
+
+ public function actionTop(){
+ return specialProducts::widget(['type' => 'top']);
+ }
+
+ public function actionProm(){
+ return specialProducts::widget(['type' => 'promo']);
+ }
}
\ No newline at end of file
diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php
index 779033e..73f1c5f 100755
--- a/frontend/controllers/SiteController.php
+++ b/frontend/controllers/SiteController.php
@@ -93,5 +93,4 @@ class SiteController extends Controller
}
-
}
diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php
index 3c89425..51fc2cb 100755
--- a/frontend/views/catalog/product.php
+++ b/frontend/views/catalog/product.php
@@ -446,129 +446,136 @@ FlipclockAsset::register($this);
-
-
-
--->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-variant->product_variant_id; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-variant->product_variant_id; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-variant->product_variant_id; ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ Коллекция светильников
+
+
+
+
+
+
+
+
+
+
+ Цена:
+ 25794.00 грн
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Цена:
+ 14330.40 грн
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Цена:
+ 8598.00 грн
+
+
+
+
+
+
+
+
+
+
+
+
+
+ */?>
+
+
+
--
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
-
+ = $this->render('../partial/brand_list')?>--
- Линия света представила трендовые модели на Interior Mebel
-
- -
- Светодиодное освещение Light Topps | Светодиодные...
-
- -
- Люстры потолочные. Новые возможности управления светом
-
- -
- Точечные светильники – универсальное решение...
-
- -
- Кухню комфортной делают светильники кухонные
-
- - Освещение загородного дома
- -
- Люстры потолочные – всегда актуальный тренд
-
- -
- Классические люстры – аристократический дух прошлого
-
- -
- Светильники и люстры – важнейший элемент интерьера
-
- - Зеленые люстры наиболее приятны для глаз
-
+ all() as $article):?>
+ -
+ = Html::a($article->title, Url::to([
+ 'articles/show',
+ 'translit' => $article->translit,
+ 'id' => $article->id,
+ ]))?>
+
+
+- = Html::a("Новинки", ['ajax/new'],['data-status'=>'new']) ?>
+ - = Html::a("Хит продаж", ['ajax/popular'],['data-status'=>'top']) ?>
+ - = Html::a("Акции", ['ajax/event'],['data-status'=>'prom']) ?>
+
+