Post by antmagn » Wed May 28, 2025 3:14 pm

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

Attachments

CaptureCart.JPG

Without ajax - CaptureCart.JPG (21.09 KiB) Viewed 1105 times

???
CaptureRound.JPG
round prices
???
CaptureTwoDecimals.JPG
2 decimal prices
Last edited by antmagn on Thu May 29, 2025 10:06 pm, edited 1 time in total.

New member

Posts

Joined
Fri Jul 23, 2021 8:38 pm

Post by ADD Creative » Wed May 28, 2025 5:25 pm

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.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by antmagn » 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 ...

New member

Posts

Joined
Fri Jul 23, 2021 8:38 pm

Post by paulfeakins » Thu May 29, 2025 5:48 pm

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]?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Bing [Bot], lockiedownunder and 42 guests