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