DiscountInfo CalculateUnitDiscount Method Kentico 8.0 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.0.5239.26125)

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