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
Parameter | Description | Version |
---|---|---|
$coupon | Coupon code. | |
$clearData | When returns true, clears system fields before adding the data. |
Example
© «Bitrix24», 2001-2025