Без красот получается что-то вроде:
Отображается см. аттач
И вроде даже работает
| Код |
|---|
<?if(is_array($arResult["OFFERS"]) && !empty($arResult["OFFERS"])):?>
<fo rm method="POST" action="index.php?action=ADD2BASKET&">
<?foreach($arResult["OFFERS"] as $arOffer):?>
<?if(!empty($arParams["OFFERS_FIELD_CODE"]) || !empty($arOffer["DISPLAY_PROPERTIES"])):?>
<?foreach($arParams["OFFERS_FIELD_CODE"] as $field_code):?>
<input type="radio" name="id" value="<?=$arOffer['ID']?>"><?echo GetMessage("IBLOCK_FIELD_".$field_code)?>:<?echo $arOffer[$field_code];?>
<?endforeach;?>
<?foreach($arOffer["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?>
<input type="radio" name="id" value="<?=$arOffer['ID']?>"><?=$arProperty["NAME"]?>:<?
if(is_array($arProperty["DISPLAY_VALUE"]))
echo implode(" / ", $arProperty["DISPLAY_VALUE"]);
else
echo $arProperty["DISPLAY_VALUE"];?>
<?endforeach?>
<?endif;?>
<?foreach($arOffer["PRICES"] as $code=>$arPrice):?>
<?if($arPrice["CAN_ACCESS"]):?>
<?=GetMessage("CATALOG_PRICE")?>
<?if($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]):?>
<span itemprop = "price"><?=$arPrice["PRINT_VALUE"]?></span> <span class="catalog-price" itemprop = "price"><?=$arPrice["PRINT_DISCOUNT_VALUE"]?></span>
<?else:?>
<span class="catalog-price" itemprop = "price"><?=$arPrice["PRINT_VALUE"]?></span>
<?endif?>
</div>
<?endif;?>
<?endforeach;?>
<?endforeach;?>
<input type="s ubmit" value="Отправить" rel="nofollow" on click="return addToCart(this, 'catalog_detail_image', 'list', '<?=GetMessage("CATALOG_IN_BASKET")?>');"></form>
<?else:?> |
И вроде даже работает

