Documentation

Add

int
CSaleOrderPropsValue::Add(
  array arFields
);

The method Add adds a new property value to an order given the specified parameters.

Parameters

ParameterDescription
arFields Associated array of a 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 added property value on success or false otherwise.

Example


<?
$arFields = array(
   "ORDER_ID" => 124859,
   "ORDER_PROPS_ID" => 15,
   "NAME" => "Delivery address",
   "CODE" => "ADDRESS",
   "VALUE" => "Madison Ave 15"
);

CSaleOrderPropsValue::Add($arFields);
?>
© «Bitrix24», 2001-2024