ProductDiscountSourceCreateFixedProductDiscount Method |
Creates a new fixed product discount of the specified displayName and value.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax 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:
IDiscountRemarks
Override this method to change the way the system calculates fixed product discounts.
See Also