How to Change Currency Symbol Position in Magento 2

change currency symbol position in Magento 2

Usually, the norm is to have the currency symbol on the left side of the amount. However, there are merchants who wish to have the currency symbol on the right side of the amount.

While speaking English, we speak “twenty dollars” (20$). Therefore, using the dollar sign after the amount is preferred.

Placing the amount and symbol in the order as we speak can also be acceptable.

The default Magento 2 shows the currency symbol on the left side. However, it does not have a feature to change the currency location from left to right.

Hence, I’ve come up with a programmatic solution to change currency symbol position in Magento 2.

Solution to Change Currency Symbol Position in Magento 2

  1. Create events.xml file at app/code/vendor/Exenstion/etc/frontend
  2. Create ChangeCurrencyPosition.php file at app/code/vendor/Exenstion/Observer

That’s it.

If you need help regarding this solution, feel free to ask in the Comments section below.

I’d be happy to help.

Do consider sharing this post with the Magento Community via social media.

Thank you.

Get Weekly Updates

Never miss Magento tips, tricks, tutorials, and news.

Thank you for subscribing.

Something went wrong.

5
(based on 8 Reviews)

Dipak is a Magento Developer at Meetanshi. Apart from work, he loves playing cricket with his friends. Traveling and exploring new places is something that he is passionate about.

Leave a reply:

Your email address will not be published.