Documentation

get

array|boolean public static
\Bitrix\Sale\DiscountCouponsManager::get(
 boolean $extMode = true,
 array $filter = array(),
 boolean $show = false,
 boolean $final = false
);

Method returns list of coupons. Static method.

Parameters

ParameterDescriptionVersion
$extModeWhen true, returns full coupon information. Otherwise returns array with coupon codes.
$filterArray with filter by coupons.
$showWhen true, selects all available coupons to display to customer or manager inside shopping cart, order checkout and etc.
When returns false, selects coupons to be applied. Coupons that have incorrect status, not found or expired, won't be returned.
$finalWhen accept false, updates status ENTERED to NOT_APPLIED.

Example



© «Bitrix24», 2001-2024
Up