Bitrix Site Manager

CSaleOrderPropsVariant::Update

int
CSaleOrderPropsVariant::Update(
 int ID,
 array arFields
);

The method Update replaces the variant parameters with the new ones from the supplied array.

Parameters

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

The following values are possible:
  • ORDER_PROPS_ID - the order property ID;
  • NAME - variant name;
  • VALUE - variant value;
  • SORT - sort weight for positioning in lists;
  • DESCRIPTION - variant description.

Return Values

Returns the ID of the updated variant on success or false otherwise.