S
S
sergeyviktorovich2021-01-12 12:53:04
1C-Bitrix
sergeyviktorovich, 2021-01-12 12:53:04

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']
                    );

                }

5ffd726a68688519733698.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question