Bitrix Site Manager

CSaleStatus::Add

string
CSaleStatus::Add(
 array arFields
);

The method Add adds a new status given the specified parameters.

Parameters

ParameterDescription
arFields Associated array containing parameters of the new 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.

Return Values

Returns the ID of the new status on success or false otherwise. 

>