0

I can already see that in header.phtml template it says

<?php echo $this->getChildHtml('currency_switcher'); ?>

but it isn't visible? How do I make it appear?

1
  • Have you activated multiple currencies properly? Commented Jun 21, 2016 at 12:06

1 Answer 1

0

You need to add currency_switcher block as child block of store_language.

So open directory.xml and add this code between <default>..</default>

<reference name="store_language">
            <block type="directory/currency" name="store_language_currency" as="store_language_currency" template="directory/currency.phtml"/>
        </reference>

Then using call this block at page/switch/languages.phtml usin below code:

<?php echo $this->getChildHtml('store_language_currency') ?> 
9
  • These files do not exist in my magneto installation. Languages.phtml in the switch folder isn't a thing
    – Oli Tuck
    Commented Jun 21, 2016 at 12:40
  • Found them in Base
    – Oli Tuck
    Commented Jun 21, 2016 at 12:41
  • Please copy those from base to rwd theme.
    – Amit Bera
    Commented Jun 21, 2016 at 12:56
  • Directory xml or local xml?
    – Oli Tuck
    Commented Jun 21, 2016 at 16:05
  • If you have local.xml at app/desing/frontend/rwd/default/layout/ folder then just add
    – Amit Bera
    Commented Jun 21, 2016 at 16:07

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.