Documentation

applyDiscount

void public static
\Bitrix\Catalog\Discount\DiscountManager::applyDiscount(
 array &$product,
 array $discount
);

Calculates discounts to products when placing and editing an order. Static method.

Parameters

ParameterDescriptionVersion
&$productProduct parameters.
$discountArray of discount parameters.

Example



© «Bitrix24», 2001-2024
Up