diff --git a/local/templates/.default/components/bitrix/catalog.element/.default/template.php b/local/templates/.default/components/bitrix/catalog.element/.default/template.php index 3f3b9bc..7a349b1 100644 --- a/local/templates/.default/components/bitrix/catalog.element/.default/template.php +++ b/local/templates/.default/components/bitrix/catalog.element/.default/template.php @@ -15,7 +15,7 @@ use Bitrix\Catalog\ProductTable; * @var string $templateFolder */ -$this->setFrameMode(true); +// $this->setFrameMode(true); use Bitrix\Catalog\PriceTable; @@ -27,7 +27,8 @@ $priceRow = PriceTable::getList([ 'select' => ['PRICE', 'CURRENCY'] ])->fetch(); -$oldPrice = $arResult['PROPERTIES']['ATT_OLD_PRICE']['VALUE']; +$oldPrice = (int) str_replace(' ', '', $arResult['PROPERTIES']['ATT_OLD_PRICE']['VALUE']); + $price = $arResult['PROPERTIES']['FORMA']['VALUE']; $camerasNum = $arResult['PROPERTIES']['CAMERAS_NUM']['VALUE']; @@ -157,11 +158,11 @@ $rating = getAverageRating($reviews);
- ₽ + - ₽ +
@@ -170,12 +171,12 @@ $rating = getAverageRating($reviews); " value="ADD2BASKET"> " value="" class="id-offer"> - - + +