Click or drag to resize
ShippingOptionInfoProviderCalculateShippingDiscount Method
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: 9.0.0
Syntax
C#
public static double CalculateShippingDiscount(
	ShoppingCartInfo cart,
	double shipping
)

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
Shopping cart to calculate shipping discount for.
shipping
Type: SystemDouble
Base price of shipping to apply discounts to.

Return Value

Type: Double
See Also