Documentation

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

ParameterDescriptionVersion
$couponsListArray of coupons.
$basketArray of shopping cart parameters.
$paramsArray of calculation parameters.

Exceptions

Example



© «Bitrix24», 2001-2024
Up