При:
выводит везде 0. Как выйти из ситуации?
Код |
---|
$discount = 5; <?foreach($arResult["ITEMS"] as $cell=>$arElement):?> **** <?if ($price=intval($arElement["PROPERTIES"]["PRICE"]["VALUE"])):?> <?echo ($discount*$price);?> <?endif?> <?endforeach;?> |