Blame view

common/modules/product/widgets/views/product_smart_similar.php 3.2 KB
08ee790c   Alexey Boroda   -Views fail rolle...
1
2
3
  <?php
      /**
       * @var Product $product
732ef658   Alexey Boroda   -Similar products...
4
       * @var string $class
08ee790c   Alexey Boroda   -Views fail rolle...
5
6
       */
      use common\modules\product\models\Product;
08ee790c   Alexey Boroda   -Views fail rolle...
7
8
9
10
11
12
      use yii\helpers\Url;
  
  ?>
  
  <div class="catalog_item">
    <div class="wrapper">
f28d611c   Alexey Boroda   -Banner added to ...
13
      <?php if (!empty($product->events)) { ?>
6f1c7f8e   Виталий   -collection
14
      <div class="events events_not_link">
25129f9f   Виталий   -collection
15
        
5edccb61   Alexey Boroda   -Banner added
16
17
18
19
20
21
22
23
24
25
          <?php
              foreach($product->events as $event){
                  if($event->banner){
                      echo \common\components\artboximage\ArtboxImageHelper::getImage($event->getImageUrl('banner'), 'banner_list',[
                          'class' => 'banner-in-list'
                      ]);
                  }
              }
        
          ?>
f28d611c   Alexey Boroda   -Banner added to ...
26
        
5edccb61   Alexey Boroda   -Banner added
27
      </div>
f28d611c   Alexey Boroda   -Banner added to ...
28
      <?php } ?>
08ee790c   Alexey Boroda   -Views fail rolle...
29
      <div class="item_container">
9a6f4934   Виталий   -collection
30
          <div class="img">
08ee790c   Alexey Boroda   -Views fail rolle...
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
          <a href="<?=Url::to([
                                  'catalog/product',
                                  'product' => $product->alias,
                              ])?>">
              <?= \common\components\artboximage\ArtboxImageHelper::getImage(
                  $product->imageUrl,
                  'list',
                  [
                      'alt'      => $product->name,
                      'title'    => $product->name,
                      'class'    => 'selected',
                      'itemprop' => 'image',
                  ]
              ) ?>
          </a>
08ee790c   Alexey Boroda   -Views fail rolle...
46
  
08ee790c   Alexey Boroda   -Views fail rolle...
47
        </div>
9a6f4934   Виталий   -collection
48
  
95b99090   Виталий   -collection
49
          <div class="style title-name_ title_name-collect">
abe34b15   Виталий   -collection
50
51
52
53
              <a href="<?= Url::to([
                  'catalog/product',
                  'product' => $product->alias
              ]) ?>" title="<?= $product->fullname . ' ' . $product->category->name ?>">
abe34b15   Виталий   -collection
54
                  <p><span><?= $product->category->name ?></span></p>
95b99090   Виталий   -collection
55
56
                  <p><span><?= $product->fullname ?></span></p>
  
abe34b15   Виталий   -collection
57
58
59
60
              </a>
  
          </div>
  
b9cfef38   Виталий   -collection
61
62
63
64
65
66
67
68
69
          <div class="style in_stock_wr">
              <div class="in_stock_">
                  <span class="yes_stock">есть на складе</span>
  
              </div>
              <div class="title-sku">
                  <span>Код: <?=$product->variant->sku?></span>
              </div>
          </div>
c17fb8de   Виталий   -collection
70
        <div class="style price">
08ee790c   Alexey Boroda   -Views fail rolle...
71
          <div class="dlexfduinxipi">
08ee790c   Alexey Boroda   -Views fail rolle...
72
73
74
75
76
77
            <span class="main"> <?php
                    echo \Yii::$app->formatter->asDecimal($product->variant->price);
                ?> <span class="currency">грн</span>
                                                          </span>
          </div>
        </div>
93a47fdf   Виталий   -collection
78
          <div class="style info_icons">
1aaf0ddf   Виталий   -collection
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
              <a href="#" class="btn btnBuy buy_button" data-id="<?php echo $product->variant->product_variant_id; ?>" data-toggle="modal" data-target="#buyForm" lang="5893">Купить</a>
  
              <?php /*
            <ul class="ul wishlike_block">
              <li class="compare">
                <a onclick="add2compare(); return false;" class="compare compare_text_link_5893" lang="5893" href="#">К сравнению</a>
                <span class="icon"></span>
              </li>
              <li class="like">
                <a class="like like_text_link_5893" lang="5893" href="#">В избранное</a><span class="icon"></span>
              </li>
            </ul>
            */ ?>
  
          </div>
c17fb8de   Виталий   -collection
94
95
96
  <!--      <div class="additional_info params">-->
  <!--      </div>-->
  <!--      <div class="opacity_bg"></div>-->
08ee790c   Alexey Boroda   -Views fail rolle...
97
98
99
      </div>
    </div>
  </div>