The IOrderCalculator interface allows you to do every calculation related to the order by yourself. Although this is not a trivial task to do (to take over calculations), it gives you the flexibility to do anything you want with the calculation mechanism.
NOTE: Using a custom implementation of the IOrderCalculator interface overrides the build-in calculations done by the Ecommerce module. This means you have to perform all the calculations by yourself.
To create a custom order calculator, you must perform the following:
CartOrder CalculateAndSaveChanges(CartOrder cartOrder)
CustomOrderCalculator : EcommerceCalculatorBase, IOrderCalculator
//Calculate the order here. Please note that overriding the built-in calculator means that the Ecommerce module will not do any of the built-in calculations.
sender, EventArgs e)
sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
Back To Top