Documentation

getEnteredCoupon

boolean|array public static
\Bitrix\Sale\DiscountCouponsManager::getEnteredCoupon(
 string $coupon,
 boolean $clearData = false
);

When coupon is not yet added, the method executes an attempt to add it. Returns coupon data on success. Static method.

Parameters

ParameterDescriptionVersion
$couponCoupon code.
$clearDataWhen returns true, clears system fields before adding the data.

Example



© «Bitrix24», 2001-2024
Up