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
getEnteredCoupon
boolean|array public static \Bitrix\Sale\DiscountCouponsManager::getEnteredCoupon( string $coupon, boolean $clearData = false );
When coupon is not yet added, the method executes an attempt to add it. Returns coupon data on success. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$coupon | Coupon code. | |
$clearData | When returns true, clears system fields before adding the data. |
Example
© «Bitrix24», 2001-2024
Up