Calculates average discount per shopping cart item unit.
If discount is applied to all units of the shopping cart item average discount is equal to unit discount. Result is in site main currency.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- item
- Type: CMS.Ecommerce ShoppingCartItemInfo
Shopping cart item
- discount
- Type: CMS.Ecommerce IItemDiscount
Discount which should be applied to the shopping cart item
- subtotalDiscount
- Type: System Double
Calculated subtotal discount
Return Value
Type: DoubleSee Also