Example without rounded subtotals
Product A costs 10.004 EUR, product B costs 20.203 EUR. The buyer places one item each of product A and product B in the cart, in which the total calculation is displayed as follows:
The total is displayed as 30.21 EUR because the calculation is performed with higher precision than the display:
Example with rounded subtotals
To prevent this effect, you can configure WEBSALE V8s to round subtotals before performing further calculations with them. The buyer again places one item each of product A and product B in the cart. Rounded subtotals with a precision of 2 decimal places are used. The buyer sees the cart as follows:
Subtotals rounded to two decimal places are used. Therefore, the total is calculated as follows:
Configuration
For all numbers that represent prices, you should therefore define the rules for rounded subtotals in addition to the display formatting. You make this setting in the<OrderConditions> section of the shop configuration shop.config.
Scope of the price formatting
Price formatting is applied throughout:- on all HTML pages. This applies to all tags that display prices and to all elements automatically generated by WEBSALE V8s, such as the cart total, the tiered price table, and the reduced price.
- in all emails.
