IShippingDiscountSourceGetRemainingAmountForFreeShipping Method |
Returns remaining amount for free shipping.
Method checks applicable free shipping offers which
DiscountOrderAmount
is larger than
orderAmount and returns additional amount to reach free shipping offer.
Method returns 0 if there is no valid discount or if free shipping is already applied.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax decimal GetRemainingAmountForFreeShipping(
CalculatorData data,
decimal orderAmount
)
Parameters
- data
- Type: CMS.EcommerceCalculatorData
Calculation data. - orderAmount
- Type: SystemDecimal
Current order amount. (specified in the calculation currency)
Return Value
Type:
DecimalSee Also