Click or drag to resize
ShoppingCartItemInfoProviderCreateDiscountRowInternal Method
Creates one row of the discounts table with the data which are calculated from the shopping cart item and specified discount.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
protected virtual DataRow CreateDiscountRowInternal(
	ShoppingCartItemInfo item,
	IItemDiscount discount,
	double basePrice = 0
)

Parameters

item
Type: CMS.EcommerceShoppingCartItemInfo
Shopping cart item
discount
Type: CMS.EcommerceIItemDiscount
Discount which should be applied to the shopping cart item
basePrice (Optional)
Type: SystemDouble
Price to apply discount to.

Return Value

Type: DataRow
See Also