D7 API documentation
What's New
Modules
Online Store in the old core
Working via register
addPacket
checkCoupon
checkDiscountId
checkPacket
checkType
clearDiscountCheckList
deleteByDiscount
disableCheckCouponsUse
enableCheckCouponsUse
generateCoupon
getCouponTypes
getMap
getTableName
isCheckedCouponsUse
isValidCouponType
onAfterAdd
onAfterDelete
onAfterUpdate
onBeforeAdd
onBeforeUpdate
onDelete
onUpdate
prepareCouponData
saveApplied
setDiscountCheckList
updateUseCoupons
validateCoupon
validateDiscountId
validateType
saveApplied
array|boolean public static \Bitrix\Sale\Internals\DiscountCouponTable::saveApplied( array $coupons, integer $userId, \Bitrix\Main\Type\DateTime $currentTime );
Method saves information about applied coupons. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$coupons | Array with coupons. | |
$userId | User ID. | |
$currentTime | Current date and time. |
Example
© «Bitrix24», 2001-2024
Up