ProductDiscountSourceAddVolumeDiscounts Method |
Adds a new discount group containing the volume discount for the specified
sku in the given
Quantity quantity.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax 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