Answer the question
In order to leave comments, you need to log in
How to display the name of trade offers properties in a template?
in the template of another component I found a code that displays properties, but how to do this in catalog.item for another product I can’t understand. how to get and where to add the name of the property of the product I need for which I will switch?
foreach ($arResult['SKU_PROPS'] as $skuProperty) {
if (!isset($arResult['OFFERS_PROP'][$skuProperty['CODE']]))
continue;
$propertyId = $skuProperty['ID'];
$skuProps[] = array(
'ID' => $propertyId,
'SHOW_MODE' => $skuProperty['SHOW_MODE'],
'VALUES' => $skuProperty['VALUES'],
'VALUES_COUNT' => $skuProperty['VALUES_COUNT']
);
}
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