buildFromBasket
mixed|null public static \Bitrix\Sale\Discount::buildFromBasket( \Bitrix\Sale\Basket $basket, \Bitrix\Sale\Discount\Context\BaseContext $context );
Method returns discount object with arbitrary (not current) user context. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$basket | Shopping cart object. | |
$context | User context object. |
Exception
- \Bitrix\Main\InvalidOperationException
© «Bitrix24», 2001-2024