| DiscountInfoProviderCalculateUnitDiscountInternal Method | 
            Validates discount and calculates shopping cart item unit discount after the discount is applied.
            
 
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
 Syntax
Syntaxprotected 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
See Also