Documentation

saveDiscount

\Bitrix\Sale\Result public static
\Bitrix\Sale\OrderDiscountManager::saveDiscount(
 array $discount,
 boolean $extResult = false
);

Method converts and saves shopping cart discount. Static method.

Parameters

ParameterDescriptionVersion
$discountArray with shopping cart discount.
$extResultWhen parameter is true, result is presented in expanded format.

Example



© «Bitrix24», 2001-2024
Up