D7 API documentation
What's New
Modules
Online Store in the old core
Working via register
add
clear
clearApply
clearApplyCoupon
clearByOrder
clearErrors
delete
deleteApplyByProduct
finalApply
get
getCheckCodeList
getData
getEnteredCoupon
getErrors
getForApply
getOrderId
getStatusList
getUseMode
getUserId
init
initUseMode
isEntered
isExist
isSuccess
load
logout
migrateStorage
reInit
saveApplied
setApply
setApplyByProduct
usedByClient
usedByExternal
usedByManager
isExist
array|boolean public static \Bitrix\Sale\DiscountCouponsManager::isExist( string $coupon );
When coupon with $coupon
exist, the method returns array with coupon parameters with keys:
- ID - coupon ID;
- COUPON - coupon code;
- MODULE_ID - module ID.
This static method is used when verifying coupon uniqueness among all modules
Parameters
Parameter | Description | Version |
---|---|---|
$coupon | Coupon code for verification. |
Example
© «Bitrix24», 2001-2024
Up