Page 1 of 1

[SOLVED] Round total price with shipping at cart

Posted: Wed May 28, 2025 3:14 pm
by antmagn
Hello everyone, I have a small problem which I found out many users encourage, or kind of similar issue. I have multi-currency in my store and I wanted to show zero decimals in prices, I found that in currencies, ok. Although the products round up correctly, the total cost is not calculated based on total product prices for some reason and to my understanding is because I have added shipping value for 11USD and although it rounds it at 10€, it calculates it around 9.68€ so it gives false total. In other words, it looks like it does not give total based on the round up prices, and it looks like false. I added screen shot if that helps, with rounded prices and one with two decimals, to see the difference. What would be the best approach for this situation? I'm using Ajax Quick Checkout extension, I disable it but still have that issue, because it begins from cart, not checkout screen (see screenshot).

Version 3.0.3.8
default theme
PHP: 7.3.13

Re: Round total price with shipping at cart

Posted: Wed May 28, 2025 5:25 pm
by ADD Creative
This is because OpenCart does all the calculations in the default currency before tax, currency conversion and rounding.
https://github.com/opencart/opencart/issues/14385

You might find something in the marketplace to help.

Re: Round total price with shipping at cart

Posted: Wed May 28, 2025 5:32 pm
by antmagn
Thank you, I understand what you mean, I might revert it to two decimals for now because it looks like an error ...

Re: Round total price with shipping at cart

Posted: Thu May 29, 2025 5:48 pm
by paulfeakins
antmagn wrote:
Wed May 28, 2025 5:32 pm
Thank you, I understand what you mean, I might revert it to two decimals for now because it looks like an error ...
Does this solve the problem? If so, can we mark it as [SOLVED]?