Click or drag to resize
ItemDiscountCalculateUnitDiscount Method
Calculates discount based on basePrice for given shoppingcart item.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
public double CalculateUnitDiscount(
	ShoppingCartItemInfo item,
	double basePrice
)

Parameters

item
Type: CMS.EcommerceShoppingCartItemInfo
Item to apply discount to.
basePrice
Type: SystemDouble
Base price to apply discount to. It is the item price with all previous discounts applied.

Return Value

Type: Double

Implements

IItemDiscountCalculateUnitDiscount(ShoppingCartItemInfo, Double)
See Also