This topic has 2 replies, 2 voices, and was last updated 10 years, 6 months ago ago by Jack Richardson
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
Hello,
This is thread for IDSTORE WORDPRESS SUPPORT FORUM. Please could you create your topic in IDSTORE MAGENTO SUPPORT FORUM
Regards,
Jack Richardson
The issue related to '‘Add currency selector in the header menu’' has been successfully resolved, and the topic is now closed for further responses