Currencies management in the Opencart 3 and 4 version with auto-update

Opencart 3 and 4 support multi-currencies so with Opencart we can sell in any currency, anywhere in the world. Go to admin >> System >> Localization >> Currencies where you will see the currencies available for use in the storefront. In the store by default, there are Euro, Pound, and US dollars but only the US dollar is enabled by default.

Default currencies in Opencart

The default currency is set to a value of 1. When you entered the product’s price we need to enter it as per the default currency with value 1. Every value of the currency will be relative to this value as per the above image the value of the US Dollar is 1.0, the Euro is calculated to be 0.85500002. The frontend price is calculated and converted as per the currency value which has 1. If Auto Update Currency is enabled then the currency is auto-updated.

Don’t confuse with default currency and value 1 of currency

Here you need to enter the price worth with the currency value equal to 1. Don’t enter the default currency value but need to enter the price of currency value equal to 1. Mostly they are the same but be sure the currency value is 1 and it is the default currency.

Product price currency

How to add the currency in Opencart 3?

To add the currency, go to admin >> System >> Settings >> Localization >> Currencies and click Add New blue button and you will see the form below:

Default currency form Opencart

Currency Title: Enter the name of the currency that you want to show in the front end.
Code: The ISO currency code, you can get the currency code at https://www.ibm.com/support/knowledgecenter/en/SSZLC2_7.0.0/com.ibm.commerce.payments.developer.doc/refs/rpylerl2mst97.htm
Symbol Left: You can find the currency symbol at https://www.xe.com/symbols.php and if you want to show the symbol to the left of the price of the product then add it here.
Symbol Right: You can find the currency symbol at https://www.xe.com/symbols.php and if you want to show the symbol to the right of the price of the product then add it here.
Decimal Places: The number of decimal places that you want to show in the front end.
Value: The default currency will be set to a value of 1 and other currency will be converted value.
Status: You can enable or disable the currency in the front end.

How to change the default currency in Opencart 3?

To change the default currency in Opencart 3, go to admin >> System >> Settings >> Edit the store >> then click the local tab and in the currency field change the currency that you want to make the default. Then, set your store to automatically update currencies. After that clear your browser cache to see the change and reset your existing cookies. Now your default currency in the Opencart 3 is set.

default currency and auto update currencies of Opencart

How do auto-update currencies exchange rate works in Opencart?

In Opencart 4, by default, there are auto-update currencies as per the currency rate converter engine “European Central Bank Currency Converter”. To enable it, log in to admin >> System >> Settings >> Edit the store >> Local tab and enable Auto Update Currency field and select the Currency Rate Engine and Save. Now, your store is set to automatically update currencies daily.

Currency rate converter engine

As we see Opencart is using this URL to get the currencies’ value https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml, as seeing the values it supports only some currencies so auto-update currencies may not be supported for all currencies.

Currencies auto update

Fix the cron job so that it gets updated daily

If you are seeing the auto-update is not working then your corn job is not running, make sure it is running daily. To check the status of the cron jobs, log into admin >> Extensions >> Cron Jobs and see the date modified and you can run the cron jobs from there as well.

cron jobs opencart

In this way, you can manage the currencies on the Opencart store. Please don’t forget to post your questions or comments so that we can add extra topics, free modules, or opencart tutorials that we need to develop which helps to develop quality. You can follow us on our Twitter account @rupaknpl and subscribe to the YouTube user opencart tutorial.

Previous articleOpencart cookie and GDPR management for Legal policies in Opencart 4, 3, and 2 versions
Next articleHow to set free shipping, flat rate shipping, shipping as per item, or pick from a store in Opencart?

LEAVE A REPLY

Please enter your comment!
Please enter your name here