2

i want to add Currency switcher in footer section.

1 Answer 1

2

Override default.xml file in your current theme and add below code :-

<?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>
        <referenceContainer name="footer">
            <block class="Magento\Directory\Block\Currency" name="currency" before="store_language" template="currency.phtml"/>
        </referenceContainer>
    </body>
</page>

Run setup:upgrade command and clear cache

2
  • mansi , thank you for your reply but it is not working i have already tried this and can u suggest me another method to display?. Commented Jan 8, 2018 at 10:04
  • mansi, thank you for your reply and it is working ....cache issue so when i cleared it was working. Commented Jan 8, 2018 at 10:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.