Documentation

GetCoupontTypes

array
CCatalogDiscountCoupon::GetCoupontTypes(
 boolean boolFull = false
);

Returns array with coupon types available at the site. Non-static method.

Attention! Method has deprecated, use this method instead: \Bitrix\Catalog\DiscountCouponTable::getCouponTypes.

Call parameters

Parameter Description
boolFull Parameter defines, which array of coupon types to be returned: brief (false) and expanded (true).

Returned value

Returns array with coupon types:

  • если $boolFull == false, returns array containing coupon types as array elements;

  • если $boolFull == true, coupon types can be array keys, values - type names:
      [Y] => Coupon for a single order item
      [O] => Coupon for a single order
      [N] => Multi-use coupon


© «Bitrix24», 2001-2024
Up