Documentation

updateByDiscount

boolean public static
\Bitrix\Sale\Internals\DiscountGroupTable::updateByDiscount(
 integer $discount,
 array $groupList,
 string $active,
 boolean $clear
);

Method updates parameters for user group list according to discount with code $discount. Static method.

Parameters

ParameterDescriptionVersion
$discountDiscount ID.
$groupListArray with user groups.
$activeDiscount active status flag.
$clearWhen parameter is true, clears old data.

Example



© «Bitrix24», 2001-2024
Up