Documentation

Update

Description and parameters

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

Method updates record parameters with ID in the table containing iblock binding to the Catalog module. Non-static method.

Call parameter

ParameterDescription
ID Record for to be updated.
arFields Associative array with new record parameters, with keys as parameter names and new values.
Permissible keys:
  • SUBSCRIPTION - flag "Content selling" (Y/N);
  • VAT_ID - VAT type code (ID);
  • PRODUCT_IBLOCK_ID - product iblock code (ID) (for SKU iblock, only jointly with SKU_PROPERTY_ID);
  • SKU_PROPERTY_ID - property code (ID) for binding products to iblock (for SKU iblock, only jointly with PRODUCT_IBLOCK_ID);

Returned value

Returns true on successfully updated record and false otherwise.

See Also


© «Bitrix24», 2001-2024
Up