There are two methods that may be used to calculate cart and order totals. The method used depends on the calculation_method setting. The default is currently the simple method and this will continue to be the case for all stores currently using this method. In future, new stores will use the line method by default.
The 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.
|Tax rate||0.20||0.00||Total tax||$5.97|
In summary, discounts are applied after tax and rounding occurs at the individual unit level.
The 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).
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 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.
|Tax rate||0.20||0.00||Total tax||
In summary, discounts are applied before tax and rounding occurs for whole lines.