calculateApplyCoupons
array public static \Bitrix\Catalog\Discount\DiscountManager::calculateApplyCoupons( array $couponsList, array $basket, array $params );
Applies discounts to shopping cart products which coupons were passed. Intended for calculating coupon discounts, added to an already existing order. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$couponsList | Array of coupons. | |
$basket | Array of shopping cart parameters. | |
$params | Array of calculation parameters. |
Exceptions
Example
© «Bitrix24», 2001-2024