Click or drag to resize
ProductDiscountSourceAddVolumeDiscounts Method
Adds a new discount group containing the volume discount for the specified sku in the given Quantity quantity.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
protected void AddVolumeDiscounts(
	ICollection<DiscountCollection> groups,
	SKUInfo sku,
	PriceParameters priceParams
)

Parameters

groups
Type: System.Collections.GenericICollectionDiscountCollection
Collection of discount groups.
sku
Type: CMS.EcommerceSKUInfo
The product.
priceParams
Type: CMS.EcommercePriceParameters
Calculation parameters
Remarks
No discount group is added when no volume discount is applicable on the sku.
See Also