A
A
anriko2021-01-27 14:29:20
1C-Bitrix
anriko, 2021-01-27 14:29:20

How to get XML_ID SKU_PROPS in catalog.item?

they are transmitted

<?$APPLICATION->IncludeComponent(
    "bitrix:catalog.section",
    "market-section-offers-multi-test",
 "OFFERS_PROPERTY_CODE" => array("LENGTH_IM","LENGTH","COLOR_WORD_IM","COLOR","ANKERS","DIAMETR_IM","TYPE_T","MONTAJ"),

you need to use XML_ID SKU_PROPS, but there is an id, a serial number and a value, but there is no XML_ID
601192a00fad4073510884.png
;

print_r($arParams['SKU_PROPS']);
Array (
[COLOR_WORD_IM] => Array
(
            [ID] => 570
            [CODE] => COLOR_WORD_IM
            [NAME] => Цвет
            [SORT] => 500
            [PROPERTY_TYPE] => L
            [USER_TYPE] => 
            [LINK_IBLOCK_ID] => 0
            [USER_TYPE_SETTINGS] => 
            [VALUES] => Array
                (
                    [125] => Array
                        (
                            [ID] => 125
                            [NAME] => оранжевый
                            [SORT] => 500
                            [PICT] => 
                        )

                    [126] => Array
                        (
                            [ID] => 126
                            [NAME] => металлик
                            [SORT] => 600
                            [PICT] => 
                        )

                    [127] => Array
                        (
                            [ID] => 127
                            [NAME] => жёлтый
                            [SORT] => 700
                            [PICT] => 
                        )

                    [130] => Array
                        (
                            [ID] => 130
                            [NAME] => чёрный
                            [SORT] => 800
                            [PICT] => 
                        )

                    [0] => Array
                        (
                            [ID] => 0
                            [SORT] => 9223372036854775807
                            [NA] => 1
                            [NAME] => -
                            [PICT] => 
                        )

                )}

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