Documentation

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

ParameterDescriptionVersion
$moduleDiscount module.
$discountDiscount parameter array.
$basketArray with shopping cart parameters.
$paramsArray with calculation parameters.

Exception

Example



© «Bitrix24», 2001-2024