Change currency symbol position

Is the currency symbol positioned on the left side of the amount but you want it to be positioned on the right in your store? No problem. Let's see how you can easily do that.

For some countries the currency symbol is more common the be positioned on the right side of the amount and not on the left as might be by default in Magento for your country. Like we do always, for this post we have created a sample module where using the Magento event "currency_display_options_forming", we can achieve our goal.

So we have to declare our event like

and calling the function execute() of the class CurrencySymbolChangePositionObserver setting the position to the right.

So now on your store the currency symbol will be shown on the right side of the amount.

The full example as extension can be found here.

Feel free to share this post and ask your questions in the comments below.

Till next time!

DigitalOcean Referral Badge