|
|
@ -15,7 +15,7 @@ use Bitrix\Catalog\ProductTable; |
|
|
|
* @var string $templateFolder |
|
|
|
* @var string $templateFolder |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
$this->setFrameMode(true); |
|
|
|
// $this->setFrameMode(true); |
|
|
|
|
|
|
|
|
|
|
|
use Bitrix\Catalog\PriceTable; |
|
|
|
use Bitrix\Catalog\PriceTable; |
|
|
|
|
|
|
|
|
|
|
@ -27,7 +27,8 @@ $priceRow = PriceTable::getList([ |
|
|
|
'select' => ['PRICE', 'CURRENCY'] |
|
|
|
'select' => ['PRICE', 'CURRENCY'] |
|
|
|
])->fetch(); |
|
|
|
])->fetch(); |
|
|
|
|
|
|
|
|
|
|
|
$oldPrice = $arResult['PROPERTIES']['ATT_OLD_PRICE']['VALUE']; |
|
|
|
$oldPrice = (int) str_replace(' ', '', $arResult['PROPERTIES']['ATT_OLD_PRICE']['VALUE']); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$price = $arResult['PROPERTIES']['FORMA']['VALUE']; |
|
|
|
$price = $arResult['PROPERTIES']['FORMA']['VALUE']; |
|
|
|
$camerasNum = $arResult['PROPERTIES']['CAMERAS_NUM']['VALUE']; |
|
|
|
$camerasNum = $arResult['PROPERTIES']['CAMERAS_NUM']['VALUE']; |
|
|
@ -157,11 +158,11 @@ $rating = getAverageRating($reviews); |
|
|
|
<div class="product-page__price"> |
|
|
|
<div class="product-page__price"> |
|
|
|
<div class="product-page__price-line"> |
|
|
|
<div class="product-page__price-line"> |
|
|
|
<span class="product-page__new-price"> |
|
|
|
<span class="product-page__new-price"> |
|
|
|
<?= number_format($priceRow['PRICE'], 0, '', ' ') ?> ₽
|
|
|
|
<?= number_format($priceRow['PRICE'], 0, '', ' '); ?> ₽
|
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<?php if ($oldPrice): ?> |
|
|
|
<?php if ($oldPrice): ?> |
|
|
|
<span class="product-page__old-price"> |
|
|
|
<span class="product-page__old-price"> |
|
|
|
<?= number_format($oldPrice, 0, '', ' ') ?> ₽
|
|
|
|
<?= number_format($oldPrice, 0, '', ' '); ?> ₽
|
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<?php endif; ?> |
|
|
|
<?php endif; ?> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -170,12 +171,12 @@ $rating = getAverageRating($reviews); |
|
|
|
<input type="hidden" name="<?echo $arParams["ACTION_VARIABLE"]?>" value="ADD2BASKET">
|
|
|
|
<input type="hidden" name="<?echo $arParams["ACTION_VARIABLE"]?>" value="ADD2BASKET">
|
|
|
|
<input type="hidden" name="ajax_basket" value="Y"> |
|
|
|
<input type="hidden" name="ajax_basket" value="Y"> |
|
|
|
<input type="hidden" name="<?echo $arParams["PRODUCT_ID_VARIABLE"]?>" value="<?= $arResult['ID'] ?>" class="id-offer">
|
|
|
|
<input type="hidden" name="<?echo $arParams["PRODUCT_ID_VARIABLE"]?>" value="<?= $arResult['ID'] ?>" class="id-offer">
|
|
|
|
<button type="submit" class="button button--orange add-to-cart-button" name="<?echo $arParams["ACTION_VARIABLE"]."ADD2BASKET"?>">
|
|
|
|
<button type="button" class="button button--orange" data-product="<?= $arResult['NAME'] ?>">
|
|
|
|
Купить |
|
|
|
Купить |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<button type="button" class="button button--outline"> |
|
|
|
<button type="submit" class="button button--outline add-to-cart-button" name="<?echo $arParams["ACTION_VARIABLE"]."ADD2BASKET"?>">
|
|
|
|
В корзину |
|
|
|
В корзину |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="product-page__delivery"> |
|
|
|
<div class="product-page__delivery"> |
|
|
|