Answer the question
In order to leave comments, you need to log in
How to change the rule for displaying all product properties?
There is a code that displays all the properties of the product, if "display" is set
if (!empty($arResult['DISPLAY_PROPERTIES']))
{
?>
<dl class="product-item-detail-properties"
<?
foreach ($arResult['DISPLAY_PROPERTIES'] as $property)
{
?>
<dt><?=$property['NAME']?></dt>
<dd><?=(
is_array($property['DISPLAY_VALUE'])
? implode(' / ', $property['DISPLAY_VALUE'])
: $property['DISPLAY_VALUE']
)?>
</dd>
<?
}
unset($property);
?>
</dl>
<?
}
<? if ($arResult["DISPLAY_PROPERTIES"]['SPOSOB_PRIMENENIYA']){?>
<?=$arResult['DISPLAY_PROPERTIES']['SPOSOB_PRIMENENIYA']['NAME']?>
<?echo $arResult['DISPLAY_PROPERTIES']['SPOSOB_PRIMENENIYA']['DISPLAY_VALUE'];?>
<?}?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question