0

I am currently using Magento version 2.3.2.

I want to show currency switcher for INR and USD and want to show INR as default currency on the front-end, for this, I have made some setting in the Store => configuration => General => Currency Setup.

Please find the attached snapshot of the setting below:

enter image description here

enter image description here

As per the above setting when I want to get currency rate I am getting error

Notice: Undefined index: INR_USD in /var/www/html/magento232/vendor/magento/module-directory/Model/Currency/Import/CurrencyConverterApi.php on line 91

Please find the snapshot of error page below:

enter image description here

Please suggest how can I configure currency switcher.

Thanks in advance.

1

It is well known issue and you can check at issue

It also got Fixed Here

Now Currency Converter API need an API to work.

You can get API from https://free.currencyconverterapi.com/

This issue has been fixed in Magento version 2.3.3

You can download Magento 2.3.3 and replace following file

vendor/magento/module-directory/Model/Currency/Import/CurrencyConverterApi.php

vendor/magento/module-directory/etc/adminhtml/system.xml

vendor/magento/module-directory/etc/config.xml

Or You can also upgrade to Magento 2.3.3

Hope above will help!

| improve this answer | |
  • Hi @pawan, Thanks to you for solving my problem, your suggestion really works for me. – Aatif Dec 16 '19 at 13:29
  • @Aatif, welcome and glad to know. You can accept answer if it worked for you :) – Pawan Dec 16 '19 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.