Documentation

saveApplied

array|boolean public static
\Bitrix\Catalog\DiscountCouponTable::saveApplied(
 array $coupons,
 integer $userId,
 \Bitrix\Main\Type\DateTime $currentTime
);

Method saves applied coupons. Static method. No need to use the method independently.

Parameters

ParameterDescriptionVersion
$couponsArray of coupons.
$userIdUser ID.
$currentTimeCurrent date and time.

Example



© «Bitrix24», 2001-2024
Up