Documentation

Add

bool
CCatalogProduct::Add(
 array arFields
);

The method Add adds the product specifications to a catalog element that represents the affected product. The method can also be used to update the existing specifications. 

Parameters

ParameterDescription
arFields Associated array with the specifications of the product. In this array, keys are the parameters names. The following key names are allowed.
  • ID - product ID (catalog element. Required key);
  • 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.

© «Bitrix24», 2001-2024