0

I am using my own custom version of the RWD theme and would like to know how I can display a currency switcher in the div .header-language-background, how would i go about doing this? thanks

1 Answer 1

1

Create local.xml at app/design/frontend/rwd/default/layout if it not exist, then call currency dropdown by below code:

<default>
<reference name="store_language">
           <block type="directory/currency" name="topcurrency"  template="directory/currency.phtml"/>
 </reference>
<default>

then call this block using <?php echo $this->getChildHtml('topcurrency') ?> in languages.phtml which located at app/design/frontend/rwd/default/template/page/switch/

4
  • I don't want it in my header , I want it in the language switcher area at the top of the site and would preferably like to insert it with html in header.phtml so i can make sure it is in the right div
    – Oli Tuck
    Commented May 3, 2016 at 14:56
  • where do you put the php code? to call it
    – Oli Tuck
    Commented May 3, 2016 at 15:16
  • i had already told you that you need to call <?php echo $this->getChildHtml('topcurrency') ?> at languages.phtml
    – Amit Bera
    Commented May 3, 2016 at 18:43
  • This is incorrect, there is '<?php echo $this->getChildHtml('currency_switcher') ?>' in my header.phtml
    – Oli Tuck
    Commented Jun 21, 2016 at 11:54

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.