Calculate cart and order totals
There are two methods that can be used to calculate cart and order totals. The method used depends on the
When you create promotions, you must consider the effects of tax calculations.
The default calculation method for stores created before February 2020 is set to
simple. However, stores created since February 2020 have
line method as the default setting.
Simple calculation method
Taxes are calculated for each line and are rounded to the nearest penny for the unit.
The cart totals are calculated by summing each of the lines and then subtracting any discounts.
|Item 1||Item 2||Discount||Total|
In summary, promotional discounts are applied after tax and rounding occurs at the individual unit level.
Line calculation method
Any cart-level discount is distributed among the cart items such that the amount each line gets is in proportion to its value before tax.
With promotions, you can provide different types of discounts. Promotional discounts are calculated for each line by subtracting from the pre-tax value and the discount is rounded to the nearest penny for the line.
Taxes are calculated for each line based on the line value after promotional discounts have been applied and are rounded to the nearest penny for the line.
The cart totals are calculated by summing each of the lines.
|Item 1||Item 2||Total|
In summary, promotional discounts are applied before tax and rounding occurs for whole lines.