calculateApplyCoupons
boolean|array public static \Bitrix\Sale\OrderDiscountManager::calculateApplyCoupons( string $module, array $discount, array $basket, array $params );
Method applies discounts with module coupons (except coupons for Online store module) to products for saved order. Discounts are calculated based on price, saved in order. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$module | Discount module. | |
$discount | Discount parameter array. | |
$basket | Array with shopping cart parameters. | |
$params | Array with calculation parameters. |
Exception
Example
© «Bitrix24», 2001-2024