Bitrix Site Manager

CCatalogProduct::Update

bool
CCatalogProduct::Update(
 int ID, 
 array arFields
);

The method Update updates the product parameters. The properties updated pertain to the product itself; these do not relate to the commercial catalog element.

Parameters

ParameterDescription
ID Product ID.
arFieldsAssociated array with the new values of the product properties. In this array, keys are the parameters names. The following key names are allowed.
  • QUANTITY - quantity of product items in stock;
  • QUANTITY_TRACE - "Y" tells the system to keep track of quantity of the product;
  • WEIGHT - product weight.

Return Values

Returns True on success or False otherwise.