Commit fde39c35e8ef32628ab7f3840dd5159a8487414a
1 parent
ad9b9ca9
Karnovsky-29042016-1220
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
frontend/views/catalog/product_item.php
| @@ -14,7 +14,9 @@ | @@ -14,7 +14,9 @@ | ||
| 14 | <?php endif?> | 14 | <?php endif?> |
| 15 | </div> | 15 | </div> |
| 16 | <div class="title_item"><?= $product->name?></div></a> | 16 | <div class="title_item"><?= $product->name?></div></a> |
| 17 | + <?php if (!empty($product->brand)) :?> | ||
| 17 | <div class="brand">Бренд: <span><?= $product->brand->name?></span></div> | 18 | <div class="brand">Бренд: <span><?= $product->brand->name?></span></div> |
| 19 | + <?php endif?> | ||
| 18 | <div class="type"><?= implode(', ', $product->categoriesNames)?></div> | 20 | <div class="type"><?= implode(', ', $product->categoriesNames)?></div> |
| 19 | <?php if($product->variant) :?> | 21 | <?php if($product->variant) :?> |
| 20 | <div class="price"><?= $product->variant->price?> <span>грн.</span></div> | 22 | <div class="price"><?= $product->variant->price?> <span>грн.</span></div> |