Click or drag to resize
DiscountCouponInfoProviderRecalculateDiscountCoupons Method
Recalculates coupons values using the given coefficient.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
public static void RecalculateDiscountCoupons(
	float coefficient,
	int roundTo,
	bool flatValues,
	bool relativeValues,
	string where,
	int siteId
)

Parameters

coefficient
Type: SystemSingle
Factor by which values are recalculated
roundTo
Type: SystemInt32
Number of significant digits the number should be rounded to
flatValues
Type: SystemBoolean
Indicates if flat values should be recalculated
relativeValues
Type: SystemBoolean
Indicates if relative values should be recalculated
where
Type: SystemString
Additional WHERE condition
siteId
Type: SystemInt32
ID of the site which records are to be recalculated
See Also