Click or drag to resize
ProductDiscountSourceCreateFixedProductDiscount Method
Creates a new fixed product discount of the specified displayName and value.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
protected virtual IDiscount CreateFixedProductDiscount(
	string displayName,
	decimal value,
	PriceParameters priceParams
)

Parameters

displayName
Type: SystemString
The display name of the discount.
value
Type: SystemDecimal
The value of the discount.
priceParams
Type: CMS.EcommercePriceParameters
Other parameters.

Return Value

Type: IDiscount
Remarks
Override this method to change the way the system calculates fixed product discounts.
See Also