IItemDiscount CalculateUnitDiscount Method Kentico 8.1 API Reference
Calculates discount based on basePrice for given shoppingcart item.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

item
Type: CMS.Ecommerce ShoppingCartItemInfo
Item to apply discount to.
basePrice
Type: OnlineSystem Double
Base price to apply discount to. It is the item price with all previous discounts applied.

Return Value

Type: OnlineDouble
See Also