Adds new discounts table row corresponding to given discount and shopping cart based on given base price. Returns calculated discount value.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- item
- Type: CMS.Ecommerce ShoppingCartItemInfo
Cart item to add discount row to.
- discount
- Type: CMS.Ecommerce IItemDiscount
Discount to be added.
- basePrice
- Type: System Double
Price to calculate discount from.
Return Value
Type: DoubleSee Also