document.write("
// вариант 1 $intIBlockID = 24; // ID инфоблока $mxResult = CCatalogSKU::GetInfoByProductIBlock($intIBlockID); if (is_array($mxResult)) { $rsOffers = CIBlockElement::GetList( array( "catalog_PRICE_1"=>"ASC" ), array( 'IBLOCK_ID' => $mxResult['IBLOCK_ID'], 'PROPERTY_'.$mxResult['SKU_PROPERTY_ID'] => $arElement["ID"] ) ); while ($arOffer = $rsOffers->GetNext()) { $ar_price = GetCatalogProductPrice($arOffer["ID"], 1); // ID необходимого типа цен для вывода echo "<span>".round($ar_price["PRICE"])." руб.</span>" ; break; } } // Вариант 2 - вывод со скидками $arDiscounts = CCatalogDiscount::GetDiscountByProduct($arOffer['ID']) ; $discountPrice = CCatalogProduct::CountPriceWithDiscount( $ar_price["PRICE"], $ar_price["CURRENCY"], $arDiscounts ); if($arDiscounts) echo "<span>".$ar_price["PRICE"]."<ins></ins></span>"; $discountPrice