Hello! Tell me how to add an element with a multiple property "List"? XML_ID and value, XML_ID and value, ... and so on? The documentation for the function CIBlockElement :: Add did not find anything like it
1 answer
// add an element with an installation for its property a pair of "value" and "description"
$el = new CIBlockElement; $PROP = array(); $PROP[id_property] = Array( "n0" => Array( "VALUE" => "value", ), "n1" => Array( "VALUE" => "value", ), ); $arLoadProductArray = Array( "IBLOCK_SECTION" => false, "IBLOCK_ID" => iblock_id, "PROPERTY_VALUES" => $PROP, "NAME" => "Элемент", ); $PRODUCT_ID = id_element; $res = $el->Update($PRODUCT_ID, $arLoadProductArray); |