D7 API documentation
What's New
Modules
Online Store in the old core
Working via register
calculateApplyCoupons
checkDiscountProvider
createSimpleDescription
deleteByOrder
formatArrayDescription
formatDescription
formatDiscountDescription
getEditUrl
getManagerConfig
init
loadResultFromDatabase
prepareDiscountDescription
saveCoupon
saveDiscount
setManagerConfig
saveDiscount
\Bitrix\Sale\Result public static \Bitrix\Sale\OrderDiscountManager::saveDiscount( array $discount, boolean $extResult = false );
Method converts and saves shopping cart discount. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$discount | Array with shopping cart discount. | |
$extResult | When parameter is true, result is presented in expanded format. |
Example
© «Bitrix24», 2001-2024
Up