#14385·opencart

Incorrect cart total calculation in non-default currency

Author: lemonadvertCreated Jan 15, 2025Updated Sep 4, 2026

Description: When switching to a currency other than the store’s default, the total amount in the cart is calculated incorrectly.

Steps to Reproduce: 1. Set the store’s default currency to Bulgarian Lev (BGN). 2. Add a product to the cart with a unit price and quantity (e.g., 4 items). 3. Observe that the total calculation in BGN is correct. 4. Switch the store’s currency to Euro (EUR). 5. Notice that the total in the cart is incorrect, with a discrepancy (e.g., a difference of 0.2 EUR).

Expected Behavior: The total should be accurately converted and calculated regardless of the selected currency.

Actual Behavior: The total shows a slight discrepancy when switching to a non-default currency.

Screenshots: 1. Total in the default currency (BGN):

bgn

3.	Total in the non-default currency (EUR): 

euro

Additional Information: • OpenCart Version: OpenCart 3.x and 4.x • Currency conversion rates are accurate and configured correctly in the admin panel. • The issue seems to be related to rounding or precision in currency conversion during cart total calculations.