From 8149b4d79ddc045bcac36ad120726ceb1ebf1b90 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 2 Feb 2017 14:02:08 +0200 Subject: [PATCH] -Similar products kind of ready --- common/modules/product/widgets/views/product_smart.php | 125 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------- common/modules/product/widgets/views/products_block.php | 46 +++++++++++++++++++++++++++------------------- frontend/views/catalog/product.php | 138 +++++++----------------------------------------------------------------------------------------------------------------------------------- 3 files changed, 96 insertions(+), 213 deletions(-) diff --git a/common/modules/product/widgets/views/product_smart.php b/common/modules/product/widgets/views/product_smart.php index 471cdaf..b666bed 100755 --- a/common/modules/product/widgets/views/product_smart.php +++ b/common/modules/product/widgets/views/product_smart.php @@ -1,70 +1,69 @@ -
-
-
-
'; - } else if($class == 'new') { - print '
'; - } else if($class == 'promo'){ - print '
Акция
'; - } - ?> +
+
+
+
+ name, + [ + 'catalog/product', + 'product' => $product->alias, + ] + ) ?> +
+ -
\ No newline at end of file +
+
diff --git a/common/modules/product/widgets/views/products_block.php b/common/modules/product/widgets/views/products_block.php index 0652a2e..b30a4e7 100755 --- a/common/modules/product/widgets/views/products_block.php +++ b/common/modules/product/widgets/views/products_block.php @@ -1,28 +1,36 @@ - - - - - -
- - render('product_smart', [ - 'product' => $product, - 'class' => $class - ]);?> - -
- + +
+
+

+ Похожие товары +

+
+ render( + 'product_smart', + [ + 'product' => $product, + ] + ); + } ?> +
+
+
- + \ No newline at end of file diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index fbecb2a..c4d007b 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -515,130 +515,12 @@
- -
-

- Коллекция светильников -

- -
-
-
-
- - -
-
- Цена: - 25794.00 грн - -
-
-
-
-
-
-
-
-
-
-
- - -
-
- Цена: - 14330.40 грн - -
-
-
-
-
-
-
-
-
-
-
- - -
-
- Цена: - 8598.00 грн - -
-
-
-
-
-
-
-
-
-
- -
- */?> - - + + $product, + ]); + ?>

@@ -692,10 +574,4 @@
-
- $product, - ]); - ?> -
+ -- libgit2 0.21.4