Blame view

common/modules/product/widgets/views/product_smart.php 3.28 KB
4253cbec   root   first commit
1
  <?php
c93ce871   Administrator   big commti
2
3
4
5
  /**
   * @var $product  common\modules\product\models\Product
   */
  use yii\helpers\Html;
4253cbec   root   first commit
6
7
  use yii\helpers\Url;
  ?>
c93ce871   Administrator   big commti
8
9
10
11
  <div class="catalog_item">
      <div class="wrapper">
          <div class="item_container" >
              <input class="prodInfo" type="hidden" value="[]">
2cbb3bdc   Виталий   test commit
12
  
c93ce871   Administrator   big commti
13
14
15
16
17
18
              <div class="img">
                  <a class="btn-product-details" href="<?= Url::to([
                      'catalog/product',
                      'product' => $product->alias
                  ]) ?>">
                      <?= \common\components\artboximage\ArtboxImageHelper::getImage($product->enabledVariants[ 0 ]->imageUrl, 'list', [
2cbb3bdc   Виталий   test commit
19
20
                          'alt'   => $product->fullname . ' ' . $product->category->name,
                          'title' => $product->fullname . ' ' . $product->category->name,
c93ce871   Administrator   big commti
21
22
23
                          'class' => 'selected'
                      ]) ?>
                  </a>
c93ce871   Administrator   big commti
24
              </div>
4253cbec   root   first commit
25
  
2cbb3bdc   Виталий   test commit
26
27
28
29
30
31
32
33
34
              <div class="style short-desc_wr">
                  <div class="style title-name_">
                      <a href="<?= Url::to([
                          'catalog/product',
                          'product' => $product->alias
                      ]) ?>" title="<?= $product->fullname . ' ' . $product->category->name ?>">
                          <p><span><?= $product->fullname ?></span></p>
                          <p><span><?= $product->category->name ?></span></p>
                      </a>
c93ce871   Administrator   big commti
35
  
2cbb3bdc   Виталий   test commit
36
37
38
39
40
41
42
43
44
                  </div>
                  <div class="style in_stock_wr">
                      <div class="in_stock_">
                          <span class="yes_stock">есть на складе</span>
                          <!--если нет в наличии выводить блок тот что ниже-->
  <!--                        <span class="no_stock">нет на складе</span>-->
                      </div>
                      <div class="title-sku">
                          <span>Код: <?=$product->variant->sku?></span>
c93ce871   Administrator   big commti
45
                      </div>
c93ce871   Administrator   big commti
46
                  </div>
c93ce871   Administrator   big commti
47
  
2cbb3bdc   Виталий   test commit
48
49
50
                  <div class="style price-basket-wr">
                      <span class="currency_price"><?= $product->variant->price ?> грн</span>
                      <div class="price-basket"><a class="" href="#"></a></div>
c93ce871   Administrator   big commti
51
52
                  </div>
              </div>
2cbb3bdc   Виталий   test commit
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  
              <!--                <div class="info_icons">-->
              <!--                    <a href="#" class="btn buy_button" data-toggle="modal" data-target="#buyForm" data-id="--><?//=$product->variant->product_variant_id; ?><!--" lang="145">Купить</a>-->
              <!--                    <ul class="ul wishlike_block hidden">-->
              <!--                        <li class="compare  hidden">-->
              <!--                            <a onclick="add2compare(); return false;" class="compare compare_text_link_3631483" href="#">К сравнению</a>-->
              <!--                            <span class="icon"></span>-->
              <!--                        </li>-->
              <!--                        <li class="like hidden">-->
              <!--                            <a class="like like_text_link_3631483" href="#">В избранное</a><span class="icon"></span>-->
              <!--                        </li>-->
              <!--                    </ul>-->
              <!--                </div>-->
  
c93ce871   Administrator   big commti
67
          </div>
4253cbec   root   first commit
68
69
      </div>
  </div>