Documentation

GetByID

array
CSaleDiscount::GetByID(
  int ID
);

The method GetByID returns the discount parameters.

Parameters

ParameterDescription
ID The ID of the discount whose parameters are to be returned.

Returned values

Associated array of the discount parameters; has the following keys.

Key Description
ID The discount ID.
LID The ID of the site to which this discount is bound.
PRICE_FROM Minimum total order price to which this discount is applicable.
PRICE_TO Maximum total order price to which this discount is applicable.
CURRENCY Currency in which all money values are specified in this record.
DISCOUNT_VALUE Discount value.
DISCOUNT_TYPE Type of the discount value (P - percentage, V - absolute value).
ACTIVE Flag indicating the discount is active (Y/N).
SORT Sort weight. If more than one discount can be applied to an order price, the discount with the less SORT is taken first.
© «Bitrix24», 2001-2024