ShippingOptionInfoProvider.CalculateShippingDiscountInternal Method |
Calculates shipping discount for supplied shopping cart. Uses ShippingDiscounts collection of cart.
Resulting discount will not be higher that shipping.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax protected virtual double CalculateShippingDiscountInternal(
ShoppingCartInfo cart,
double shipping
)
Parameters
- cart
- Type: CMS.Ecommerce.ShoppingCartInfo
Shopping cart to calculate shipping discount for. - shipping
- Type: System.Double
Base price of shipping to apply discounts to.
Return Value
Type:
DoubleSee Also