Documentation

Delete

mixed
CCatalogDiscountCoupon::Delete (
int $ID,
boolean $bAffectDataFile = True
);

Method deletes a coupon. Non-static method.

Call parameters

Parameter DescriptionAvailable from versionto 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.112.0.0

Returned value

Method returns true on success and false otherwise.



© «Bitrix24», 2001-2024
Up