Documentation

CExtra::Update

bool
CExtra::Update(
 int ID, 
 array arFields
);

The method Update updates the specified discount parameters with the specified values.

Parameters

ParameterDescription
ID Discount ID.
arFields Associated array of the new parameter values with the following keys:
  • NAME - name of the discount;
  • PERCENTAGE - percentage value of the discount (both positive and negative values allowed);
  • RECALCULATE - if "Y", all prices specified using this discount are recalculated.

Return Values

Returns True on success or FALSE otherwise.

© «Bitrix24», 2001-2024