Post by Durango95 » Tue Jan 31, 2023 2:54 am

The main currency of my ecommerce is the dollar, but I also accept payments in Euro, Pound and Real. However, when saving the order in a currency other than the dollar, I have a problem with rounding the order amount. How to solve it?
Opencart Version v3.0.3.2

Newbie

Posts

Joined
Tue Jan 10, 2023 9:17 pm

Post by by mona » Tue Jan 31, 2023 3:32 am

If I understand correctly? Why would you want to do that

If you go to an exchange bank and ask for 100 Euros in US$ you do not expect them to round it up to the nearest dollar
Or am I missing something ?

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Durango95 » Tue Jan 31, 2023 4:24 am

Opencart stores values ​​in the default currency (in my case, in dollars) in the oc_order (and other relational) tables. But I accept that my client places the order in Euro, Pound, and Real, and makes the payment in these currencies. But as Opencart saves the value in the default currency (dollar), the amounts are incorrect in the order (difference of cents).

Newbie

Posts

Joined
Tue Jan 10, 2023 9:17 pm
Who is online

Users browsing this forum: moreduff and 266 guests