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

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
protected virtual double CalculateUnitDiscountInternal(
	ShoppingCartItemInfo item,
	DiscountInfo discount,
	double basePrice = 0
)

Parameters

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

Return Value

Type: Double
See Also