Documentation

Add

int
CSaleOrderUserPropsValue::Add(
 array arFields
);

The method Add adds a new property to the customer profile.

Parameters

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

The following values are possible:
  • USER_PROPS_ID - the customer profile ID;
  • ORDER_PROPS_ID - the order property ID;
  • NAME - order property name;
  • VALUE - the order property value as stored in a profile.

Returned values

Returns the ID of an added customer profile property on success, or false otherwise.

Example


<?
$arFields = array(
   "USER_PROPS_ID" => 1258,
   "ORDER_PROPS_ID" => 12,
   "NAME" => "ZIP code",
   "VALUE" => "23605"
);
CSaleOrderUserPropsValue::Add($arFields);
?>
© «Bitrix24», 2001-2024
Up