CIBlockElement::Update(ID,[NAME=>LALALA])
public static function UpdateProduct($arItem){
$el = new CIBlockElement;
$el->Update($arItem['PRODUCT_ID'],['TIMESTAMP_X'=>date('d.m.Y H:i:s'),'NAME'=>$arItem['PRODUCT_NAME'],'ACTIVE'=>'Y','MODIFIED_BY'=>3]);
}
$el = new CIBlockElement;
$arLoadProductArray = Array(
"MODIFIED_BY" => 1, // элемент изменен текущим пользователем
"DATE_CREATE" =>$value,
);
$res = $el->Update($catElement['ID'], $arLoadProductArray);
$el->Update($arItem['PRODUCT_ID'],['TIMESTAMP_X'=>date('d.m.Y H:i:s'),'NAME'=>$arItem['PRODUCT_NAME'],'ACTIVE'=>'Y','MODIFIED_BY'=>3]);
$el = new CIBlockElement;
$arLoadProductArray = Array(
"MODIFIED_BY" => 3, // элемент изменен текущим пользователем
"NAME" => $arData['PRODUCT_NAME'],
"ACTIVE" => "Y", // активен
);
$PRODUCT_ID = $arData['PRODUCT_ID']; // изменяем элемент с кодом (ID) 2
$res = $el->Update($PRODUCT_ID, $arLoadProductArray);
$arLoadProductArray = Array(
"MODIFIED_BY" => 3,
"NAME" => $arData['PRODUCT_NAME'],
"ACTIVE" => "Y",
'TIMESTAMP_X'=>date('Y-m-d H:i:s'),
"IPROPERTY_TEMPLATES"=>Array(
"ELEMENT_PAGE_TITLE" => $arData['PRODUCT_NAME'],
"ELEMENT_META_TITLE" => $arData['PRODUCT_NAME'],
"SECTION_PAGE_TITLE" => $arData['PRODUCT_NAME'],
)
);