Click or drag to resize
ProductDiscountSourceAddCatalogDiscounts Method
Adds grouped catalog discounts applicable to the specified sku to the groups collection.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
protected void AddCatalogDiscounts(
	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
See Also