
Hello Magento Friends,
In this Magento Tutorial, I will be discussing How to Remove Currency Switcher in Magento 2.
In Magento 2 the customers can select their local currency for payment from the currency switcher dropdown.
Let’s get started to know How to Remove Currency Switcher in Magento 2.
1. Create a new file inside your storefront theme folder:
app/design/frontend/ThemeVendor/ThemeName/Magento_Theme/layout/default.xml
2. Add this code into it:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="currency" remove="true" />
<referenceBlock name="store.settings.currency" remove="true" />
</body>
</page>
In case you already have the Magento_Theme/layout/default.xml file, then edit it and put this code before the </body> closing tag:
<referenceBlock name="currency" remove="true" />
<referenceBlock name="store.settings.currency" remove="true" />
3. Run the below command to flush the cache.
php bin/magento cache:flush
That's it.
If you have any doubts share with us through the comments section below.
Share this article with your friends and colleagues. Follow us for more tutorials like this.
Keep Learning!! Keep Sharing!!
Thank you.