$arr = Array(
"MODIFIED_BY" => $USER->GetID(),
"IBLOCK_SECTION" => false,
"IBLOCK_TYPE_ID" => $ibItem['IBLOCK_TYPE_ID'],
"IBLOCK_ID" => $ibItem['ID'],
"PROPERTY_VALUES" => Array(
"DEALER" => $DEALER_ID
),
"NAME" => $DATA['NAME'],
"DETAIL_TEXT" => $DATA['TEXT'],
"ACTIVE" => "Y"
);
$el = new CIBlockElement;
if($ID = $el->Add($arLoadProductArray))
{
echo $ID;
}
else
{
echo $el->LAST_ERROR;
} |