Post by Limon12 » Sun Apr 18, 2021 7:08 am

Hello, I have a store on opencart 3.x
I want to display products price in USD as default currency, but on checkout page I need to convert that USD's to required currency and checkout amount would be the converted amount not is USD

Thanks.
Last edited by Limon12 on Mon Apr 19, 2021 3:58 pm, edited 1 time in total.

Newbie

Posts

Joined
Sun Jan 10, 2021 7:05 am

Post by OSWorX » Sun Apr 18, 2021 4:34 pm

Limon12 wrote:
Sun Apr 18, 2021 7:08 am
Hello, I have a store on opencart 3.x
I want to display products price in USD as default currency, but on checkout page I need to convert that USD's to required currency and checkout amount would be the converted amount not is USD..

Thanks.
Hmm .. what for is this?

What do you understand as "requried currency"?
Who requires that?
And when?
And why?

Case: I am the customer, see a product priced in USD.
Want to buy it in EUR - but cannot, because cannot switch from USD to EUR (as far as I understand your issue).
Therefore I will not buy it.

Better to elaborate what you want and why - maybe someone can help you then ..

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by rjcalifornia » Wed Apr 28, 2021 7:33 am

Limon12 wrote:
Sun Apr 18, 2021 7:08 am
Hello, I have a store on opencart 3.x
I want to display products price in USD as default currency, but on checkout page I need to convert that USD's to required currency and checkout amount would be the converted amount not is USD

Thanks.
It is an odd request, but you if you really want to do that, I guess you can try to edit the confirm.twig file:

catalog/view/template/checkout/confirm.twig

Add a new "Converted" column, and calculate there the price in the desired currency

Non-tested example:

Code: Select all

{% set custom_currency = 2.84 %}
{% set converted_price = column_price * custom_currency %}
{{  converted_price }}


Image


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide
Who is online

Users browsing this forum: tedxas and 46 guests