<?foreach($arResult["PRODUCT_PROPERTIES"] as $pid => $product_property):?>
<?echo $arResult["PROPERTIES"][$pid]["NAME"]?>:
<?if(
$arResult["PROPERTIES"][$pid]["PROPERTY_TYPE"] == "L"
&& $arResult["PROPERTIES"][$pid]["LIST_TYPE"] == "C"
):?>
<?foreach($product_property["VALUES"] as $k => $v):?>
<label><input type="radio" name="<?echo $arParams["PRODUCT_PROPS_VARIABLE"]?>[<?echo $pid?>]" value="<?echo $k?>" <?if($k == $product_property["SELECTED"]) echo '"checked"'?>><?echo $v?></label><br>
<?endforeach;?>
<?else:?>
<select name="<?echo $arParams["PRODUCT_PROPS_VARIABLE"]?>[<?echo $pid?>]">
<?foreach($product_property["VALUES"] as $k => $v):?>
<option value="<?echo $k?>" <?if($k == $product_property["SELECTED"]) echo '"selected"'?>><?echo $v?></option>
<?endforeach;?>
</select>
<?endif;?>
<?endforeach;?>
|