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
formatArrayDescription
array|boolean public static \Bitrix\Sale\OrderDiscountManager::formatArrayDescription( array $descr );
Method returns description of shopping cart discount (value and action) using passed data. Used for generating discount description at the order page.
It is a helper method. Get array and by element passes them to formatDescription. Returns array with strings or false.
Parameters
Parameter | Description | Version |
---|---|---|
$descr | Array with description data. |
Example
© «Bitrix24», 2001-2024
Up