How to Get Available Currency in Magento 2

Magento 2 stores support multiple currencies. The admin can set multi currency and default store currency under the store configuration. Sometimes, developers or store owners may require fetching the get available currency in Magento 2 for multiple purposes.

For an instance, suppose you want to show a drop-down list of all accepted currencies to the customers and want them to choose their preferred one. Thus, you may require to programmatically fetch the list of the allowed currency in Magento 2 and show to the customers.

Also read: Magento 2 API – Get All Available Currencies

In this scenario, you can simply make use of the solution below to get the list of the available currencies in Magento 2 and use them as per your convenience.

Method to Get Available Currency in Magento 2:

 

That’s it.

In case you have any queries regarding the above solution or facing any issue while fetching the available currency in Magento 2, feel free to comment down below. I would be happy to assist you!

Also, do not forget to share the solution with the Magento community through social media.

Thank you!

5
(based on 7 Reviews)
How to Get Available Currency in Magento 2

Ronak Bhatti

Ronak is a Magento Developer at Meetanshi. He loves playing cricket. Apart from the work, he is an enthusiastic person who loves learning new skills.

Leave a Reply

Your email address will not be published.