Documentation

Update

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

The method Update replaces the values of the specified property value with the new ones.

Parameters

ParameterDescription
ID The order property value ID.
arFields Associated array of the new property value parameters whose keys are the order parameter names, and values are the parameter values.

The following values are possible:
  • ORDER_ID - the order ID (required);
  • ORDER_PROPS_ID - the property ID;
  • NAME - the property name;
  • VALUE - property value (required);
  • CODE - property mnemonic code.

Returned values

Returns the ID of an updated value or false otherwise.

Example


<?
CSaleOrderPropsValue::Update(8, array("CODE"=>"ADDRESS"));
?>
© «Bitrix24», 2001-2024
Up