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
Parameter | Description | Version |
---|---|---|
$extMode | When true, returns full coupon information. Otherwise returns array with coupon codes. | |
$filter | Array with filter by coupons. | |
$show | When 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. | |
$final | When accept false, updates status ENTERED to NOT_APPLIED . |
Example
© «Bitrix24», 2001-2024