Click or drag to resize
ProductDiscountSource Class
Represents a source of discounts related to product units.
Inheritance Hierarchy
SystemObject
  CMS.EcommerceProductDiscountSource

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
public class ProductDiscountSource : IProductDiscountSource

The ProductDiscountSource type exposes the following members.

Constructors
  NameDescription
Public methodProductDiscountSource
Initializes a new instance of the ProductDiscountSource class using the specified discount sources, main currency source, currency converter factory and rounding service factory.
Top
Methods
  NameDescription
Protected methodAddCatalogDiscounts
Adds grouped catalog discounts applicable to the specified sku to the groups collection.
Protected methodAddVolumeDiscounts
Adds a new discount group containing the volume discount for the specified sku in the given Quantity quantity.
Protected methodCreateFixedProductDiscount
Creates a new fixed product discount of the specified displayName and value.
Protected methodCreatePercentageProductDiscount
Creates a new percentage product discount of the specified displayName. The amount of the discount is specified by rate parameter.
Public methodGetDiscounts
Returns groups of discounts for the specified sku and price.
Top
See Also