Commit 36337e6af715af5da9ca213b88ffd15beae98952

Authored by Виталий
1 parent 5ee82f40

-collection

common/modules/product/widgets/views/products_block_similar.php
@@ -12,36 +12,36 @@ @@ -12,36 +12,36 @@
12 12
13 <?php if (!empty($products)) { ?> 13 <?php if (!empty($products)) { ?>
14 14
15 -<!-- <div class="collection" style="padding: 0;">-->  
16 -<!---->  
17 -<!-- <h2 id="collection">-->  
18 -<!-- Похожие товары-->  
19 -<!-- </h2>-->  
20 -<!---->  
21 -<!-- <div class="catalog_product_list view_table new_collection">-->  
22 -<!-- --><?php //foreach ($products as $product) {  
23 -// if ($product->is_top) {  
24 -// $class = 'top';  
25 -// } elseif ($product->is_new) {  
26 -// $class = 'new';  
27 -// } elseif ($product->akciya) {  
28 -// $class = 'promo';  
29 -// } else {  
30 -// $class = '';  
31 -// }  
32 -// echo $this->render(  
33 -// 'product_smart_similar',  
34 -// [  
35 -// 'product' => $product,  
36 -// 'class' => $class,  
37 -// ]  
38 -// );  
39 -// } ?>  
40 -<!-- </div>-->  
41 -<!---->  
42 -<!-- <div class="clearfix"></div>-->  
43 -<!---->  
44 -<!-- </div>--> 15 + <div class="collection" style="padding: 0;">
  16 +
  17 + <h2 id="collection">
  18 + Похожие товары
  19 + </h2>
  20 +
  21 + <div class="catalog_product_list view_table new_collection">
  22 + <?php foreach ($products as $product) {
  23 + if ($product->is_top) {
  24 + $class = 'top';
  25 + } elseif ($product->is_new) {
  26 + $class = 'new';
  27 + } elseif ($product->akciya) {
  28 + $class = 'promo';
  29 + } else {
  30 + $class = '';
  31 + }
  32 + echo $this->render(
  33 + 'product_smart_similar',
  34 + [
  35 + 'product' => $product,
  36 + 'class' => $class,
  37 + ]
  38 + );
  39 + } ?>
  40 + </div>
  41 +
  42 + <div class="clearfix"></div>
  43 +
  44 + </div>
45 45
46 46
47 <?php } ?> 47 <?php } ?>
48 \ No newline at end of file 48 \ No newline at end of file