Documentation

DeleteByDiscountID

boolean
CCatalogDiscountCoupon::CheckFields (
int $ID,
boolean $bAffectDataFile = true
);

Method deletes all coupons for selected discount and re-generates discount file and coupons. Non-static method.

Call parameters

Parameter DescriptionAvailable from versionto version
ID Discount code (ID).
bAffectDataFile Optional parameter, indicating to re-generate discount and coupon file. These actions are performed by methods CCatalogDiscount::ClearFile() and CCatalogDiscount::GenerateDataFile().

Note: starting from version 12.0 parameter is not required, because discount cache file is no longer used starting from this version.
5.1.112.0.0

Returned value

Returns true on success and false otherwise.



© «Bitrix24», 2001-2024
Up