Delete
mixed
CCatalogDiscountCoupon::Delete (
int $ID,
boolean $bAffectDataFile = True
);
Method deletes a coupon. Non-static method.
Call parameters
Parameter | Description | Available from version | to version |
---|---|---|---|
ID | Coupon code (ID). | ||
bAffectDataFile | Optional parameter, indicates necessity to re-generate discount and coupon file. These actions are performed by the method CCatalogDiscount::GenerateDataFile().
Starting from version 12.0, this parameter is not required, because discount file cache is no longer used starting from this version. | 5.1.1 | 12.0.0 |
Returned value
Method returns true on success and false otherwise.
© «Bitrix24», 2001-2024