ShippingOptionInfoProvider CalculateShippingDiscountInternal Method Kentico 8.0 API Reference
Calculates shipping discount for supplied shopping cart. Uses ShippingDiscounts collection of cart. Resulting discount will not be higher that shipping.

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

Parameters

cart
Type: CMS.Ecommerce ShoppingCartInfo
Shopping cart to calculate shipping discount for.
shipping
Type: OnlineSystem Double
Base price of shipping to apply discounts to.

Return Value

Type: OnlineDouble
See Also