if(isset($arElement["PRICE_MATRIX"]["MATRIX"][2][0]["PRICE"])) {
$priceval = $arElement["PRICE_MATRIX"]["MATRIX"][2][0]["PRICE"];
$prucecurr = $arElement["PRICE_MATRIX"]["MATRIX"][2][0]["CURRENCY"];
if ($prucecurr == 'RUB' || $prucecurr == 'RUR')
$rurval = $priceval;
else
$rurval = CCurrencyRates::ConvertCurrency($priceval, $prucecurr, "RUR");
$rurval_str = number_format($rurval, 2, ".", " ");
/*$rurval_str = number_format($priceval, 2, ".", " ").' ?';*/
?>
<span class="price-msg"><?=GetMessage('CATALOG_PRICE');?>:</span> <span class="catalog-item-price"><?=$rurval_str?></span>
<?
}
?>
</td>
</tr> |