Blame view

frontend/views/catalog/product_smart.php 1.33 KB
ad9b9ca9   Karnovsky A   Karnovsky-2904201...
1
2
  <?php
  /** @var \common\modules\product\models\Product $product */
ed1bbc01   Administrator   26.05.16 change i...
3
  use common\components\artboximage\ArtboxImageHelper;
ad9b9ca9   Karnovsky A   Karnovsky-2904201...
4
5
6
7
  ?>
  <div class="my_custom_card">
      <!--<div class="new">АКЦИЯ</div>
      <div class="top">Toп</div>-->
ed1bbc01   Administrator   26.05.16 change i...
8
9
10
11
12
13
14
15
      <a href="<?= \yii\helpers\Url::to(['catalog/product', 'product' => $product])?>" class="item_link">
          <div class="pic">
              <?php if (empty($product->image)) :?>
                  <img src="/images/no_photo.png">
              <?php else :?>
                  <?= ArtboxImageHelper::getImage($product->image->imageUrl, 'product_list')?>
              <?php endif?>
          </div>
ad9b9ca9   Karnovsky A   Karnovsky-2904201...
16
17
          <div class="title_item"><?= $product->name?></div></a>
      <?php if ($product->brand) :?>
e136edc8   Karnovsky A   ---
18
          <div class="brand">Бренд: <span><?= $product->brand->name?></span></div>
ad9b9ca9   Karnovsky A   Karnovsky-2904201...
19
20
21
22
23
24
25
26
27
      <?php endif?>
      <div class="type"><?= implode(', ', $product->categoriesNames)?></div>
      <?php if($product->variant) :?>
          <div class="price"><?= $product->variant->price?> <span>грн.</span></div>
          <button class="basket_add_but" data-id="<?= $product->variant->product_variant_id?>">в корзину</button>
      <?php endif?>
      <a href="#" class="compare_add_but" data-id="<?= $product->product_id?>"><span>добавить к сравнению</span></a>
      <img class="item_bottom_img" src="/images/nc_item_bottom.png" alt="">
  </div>