public virtual decimal CalculateDiscount( int lineItemQuantity, int totalQuantity, decimal lineItemValue, decimal totalValue )
Parameters
- lineItemQuantity
- Quantity of line item to be discounted.
- totalQuantity
- Total quantity of all line items used to determine eligibility for discount.
- lineItemValue
- Extended Price of product (or line item) to be discounted.
- totalValue
- If grouping discount mode is enabled, this is the total Extended Price of all products from the same category; if line item discount mode is enabled, this should be the same value as lineItemValue.
Return Value
The calculated discount