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

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

Parameters

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

Return Value

Type: Double
See Also