Calculates the subtotal of a single discount which is applied to all shopping cart item units altogether. 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
Data of the discount which was used for unit discount calculation
- unitDiscount
- Type: System Double
Calculated unit discount
Return Value
Type: DoubleSee Also