Documentation

GetByID

array
CCatalogDiscount::GetByID(
 int ID
);

Method retrieves discount parameters by its ID. Non-static method.

Call parameters

ParameterDescription
ID  Record code.

Returned values

Method returns an associative array with discount parameters with keys:

  • ID - record code;
  • SITE_ID - site;
  • ACTIVE - active flag;
  • NAME - discount name;
  • COUPON - coupon code;
  • SORT - sort index;
  • MAX_DISCOUNT - max discount amount;
  • TIMESTAMP_X - date of the recent record update;
  • VALUE_TYPE - discount type (P - in percent, F - fixed value);
  • VALUE - discount amount;
  • CURRENCY - currency;
  • RENEWAL - "Renewal discount" flag;
  • ACTIVE_FROM - date for applied discount start;
  • ACTIVE_TO - date for applied discount end.


© «Bitrix24», 2001-2024
Up