Add currency selector in the header menu

This topic has 2 replies, 2 voices, and was last updated 9 years, 11 months ago ago by Jack Richardson

  • Avatar: dipen27
    dipen27
    Participant
    May 21, 2014 at 09:26

    We wanna add currency selector in the header menu.

    We tried two ways of doing the same :

    1) Add a block in the head section of directory.xml file located at the following path :

    /aap/design/frontend/base/default/layout/directory.xml

    here we have the following block :

     <default>
            <reference name="head">
                <block type="core/template" name="optional_zip_countries" as="optional_zip_countries" template="directory/js/optional_zip_countries.phtml" />
              <block type="directory/currency" name="currency"  template="directory/currency.phtml"/> 
            </reference>
    
     </default>

    But with this, the selector comes above the header menu as shown in the image.

    2) Adding currency-switcher in the header.phtml file as follows :

    <div class="currency-switcher"><?php  echo $this->getChildHtml('currency_switcher'); ?></div> 
    

    Gives following error :

    Fatal error: Call to a member function getCode() on a non-object in /public_html/app/design/frontend/base/default/template/directory/currency/switch.phtml on line 30

    Please suggest how can we add the currency selector/switcher block in the header.phtml

    1 Answer
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 21, 2014 at 10:35

    Hello,

    This is thread for IDSTORE WORDPRESS SUPPORT FORUM. Please could you create your topic in IDSTORE MAGENTO SUPPORT FORUM

    Regards,
    Jack Richardson

  • Viewing 2 results - 1 through 2 (of 2 total)

The issue related to '‘Add currency selector in the header menu’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.