Documentation

SetCoupon

bool
CCatalogDiscountCoupon::SetCoupon(
 string coupon
);

Method adds coupon code to the array of discount coupons available for current buyer. System calculates minimal product price for this buyer with account of all its discounts and coupons. Non-static method.

Attention! This method has deprecated, user this method instead: \Bitrix\Sale\DiscountCouponsManager::add.

Call parameters

ParameterDescription
coupon Coupon code.

Returned values

Returns true on successfully added coupon code and false otherwise.


© «Bitrix24», 2001-2024
Up