Documentation

getCouponTypes

array public static
\Bitrix\Catalog\DiscountCouponTable::getCouponTypes(
 boolean $extendedMode = false
);

Returns array of available coupon types. Static method.

Parameters

ParameterDescriptionVersion
$extendedModeParameter defines format for array of coupon types to be returned:
  • brief (false) - returns array, containing coupon type IDs as array elements;
  • expanded (true) - coupon type IDs will be array keys, values - type names.

Example



© «Bitrix24», 2001-2024
Up