<?if($arResult["CAN_BUY"]):?>
<input id="qty" name="qty" type="text" style="width:25px" value="1"/> <input name="add" type="button" value="<?=$LANG["button"]["add_to_cart"]?>" OnClick="window.location='/news/cart/index.php?ACTION=CHECKPRODUCT&PRODUCT_ID=<?=$arResult["ID"]?>&QUANTITY='+document.getElementById('qty').value+'&PROCCESS_URL=<?=urlencode($arResult["ADD_URL"])?>&BACK_URL=<?=urlencode($APPLICATION->GetCurPage()."?SECTION_ID=".$_GET["SECTION_ID"]."&ELEMENT_ID=".$_GET["ELEMENT_ID"])?>'" />
<?elseif(count($arResult["PRICES"])>0):?>
<?=GetMessage("CATALOG_NOT_AVAILABLE")?>
<?endif?> |