Documentation

Update

string
CSaleStatus::Update(
 string ID,
 array arFields
);

The method Update replaces parameters of the specified status with the new ones.

Parameters

ParameterDescription
ID The ID of the order status to be updated.
arFields Associated array containing new parameters of the status whose keys are the order parameter names, and values are the parameter values.

The following values are possible:
  • ID - the status ID (required);
  • SORT - sort weight;
  • LANG - array containing arrays of language-dependent status parameters:
    • LID - language;
    • NAME - name of the status in the language LID;
    • DESCRIPTION - status description.

Returned values

Returns the ID of updated status or false otherwise.

© «Bitrix24», 2001-2024