D7 API documentation
What's New
Modules
Online Store in the old core
Working via register
buildFromBasket
calculate
clearBasketItemData
getApplyMode
getApplyModeList
getApplyResult
getOrder
getShipmentsIds
getUseMode
isClone
isOrderExists
isOrderNew
isOrderRefresh
load
loadByBasket
loadByFuser
save
setApplyResult
setCalculateShipments
setOrder
setOrderRefresh
setUseMode
loadByBasket
\Bitrix\Sale\Discount public static \Bitrix\Sale\Discount::loadByBasket( \Bitrix\Sale\Basket $basket );
Method returns initialized discount object for passed shopping cart object, not associated with an order (used only for site's public section). Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$basket | Shopping cart object. |
Example
© «Bitrix24», 2001-2024
Up