ShoppingCartItemInfoProviderCalculateSubtotalDiscountInternal Method |
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.2.23
Syntax protected virtual double CalculateSubtotalDiscountInternal(
ShoppingCartItemInfo item,
IItemDiscount discount,
double unitDiscount
)
Parameters
- item
- Type: CMS.EcommerceShoppingCartItemInfo
Shopping cart item - discount
- Type: CMS.EcommerceIItemDiscount
Data of the discount which was used for unit discount calculation - unitDiscount
- Type: SystemDouble
Calculated unit discount
Return Value
Type:
DoubleSee Also