Click or drag to resize
VolumeDiscountInfoProviderCalculateUnitDiscount Method
Validates volume discount and calculates shopping cart item unit discount after the volume discount is applied.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public static double CalculateUnitDiscount(
	ShoppingCartItemInfo item,
	VolumeDiscountInfo discount,
	double basePrice = 0
)

Parameters

item
Type: CMS.EcommerceShoppingCartItemInfo
Shopping cart item to which the volume discount should be applied
discount
Type: CMS.EcommerceVolumeDiscountInfo
Volume discount data
basePrice (Optional)
Type: SystemDouble
Price to apply discount to.

Return Value

Type: Double
See Also