{"id":1465,"date":"2020-12-17T09:30:02","date_gmt":"2020-12-17T09:30:02","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/change-currency-symbol-position-magento-2\/"},"modified":"2025-07-17T10:13:48","modified_gmt":"2025-07-17T04:43:48","slug":"change-currency-symbol-position-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/change-currency-symbol-position-magento-2\/","title":{"rendered":"How to Change Currency Symbol Position in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While speaking English, we speak \u201ctwenty dollars\u201d (20$). Therefore, using the dollar sign after the amount is preferred.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Placing the amount and symbol in the order as we speak can also be acceptable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The default\u00a0Magento 2\u00a0shows the currency symbol on the left side. However, it does not have a feature to change the currency location from left to right.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hence, I\u2019ve come up with a programmatic solution to&nbsp;<strong>change currency symbol position in Magento 2<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution to Change Currency Symbol Position in Magento 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. Create&nbsp;<strong>events.xml<\/strong>&nbsp;file at&nbsp;<strong><em>app\/code\/vendor\/Exenstion\/etc\/frontend<\/em><\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?xml version=\"1.0\"?>\n\n&lt;config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\n        xsi:noNamespaceSchemaLocation=\"urn:magento:framework:Event\/etc\/events.xsd\">\n\n    &lt;event name=\"currency_display_options_forming\">\n        &lt;observer name=\"change_currency_position\" instance=\"vendor\\Exenstion\\Observer\\ChangeCurrencyPosition\"\/>\n    &lt;\/event>\n&lt;\/config><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2. Create&nbsp;<strong>ChangeCurrencyPosition.php&nbsp;<\/strong>file at app\/code\/vendor\/Exenstion\/Observer<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php\n\nnamespace vendor\\Exenstion\\Observer;\n\nuse Magento\\Framework\\Event\\ObserverInterface;\n\nclass ChangeCurrencyPosition implements ObserverInterface\n{\n\n    public function execute(\\Magento\\Framework\\Event\\Observer $observer)\n    {\n        $currencyOptions = $observer->getEvent()->getCurrencyOptions();\n        $currencyOptions->setData('position', \\Magento\\Framework\\Currency::RIGHT);\n        return $this;\n\n    }\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do consider sharing this post with the Magento Community via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-1465","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=1465"}],"version-history":[{"count":3,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1465\/revisions"}],"predecessor-version":[{"id":14570,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1465\/revisions\/14570"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}