Click or drag to resize
ShoppingCartItemInfoProviderAddDiscountRowInternal Method
Adds new discounts table row corresponding to given discount and shopping cart based on given base price. Returns calculated discount value.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
protected virtual double AddDiscountRowInternal(
	ShoppingCartItemInfo item,
	IItemDiscount discount,
	double basePrice
)

Parameters

item
Type: CMS.EcommerceShoppingCartItemInfo
Cart item to add discount row to.
discount
Type: CMS.EcommerceIItemDiscount
Discount to be added.
basePrice
Type: SystemDouble
Price to calculate discount from.

Return Value

Type: Double
See Also