Documentation

updateByDiscount

boolean public static
\Bitrix\Sale\Internals\DiscountModuleTable::updateByDiscount(
 integer $discount,
 array $moduleList,
 boolean $clear
);

Method updates parameters for list of modules, necessary for handling discount with code $discount. Static method.

Parameters

ParameterDescriptionVersion
$discountDiscount ID.
$moduleListArray with module IDs.
$clearWhen parameter is true, clears old values.

Example



© «Bitrix24», 2001-2024
Up