Need to show the drop down of currency in the sidebar ?
Below code will displays the currency drop down on left and right sidebar.
Open the directory.xml file in the layout folder (app/design/frontend/default/default/layout/directory.xml) and add the following code to it.
<default>
<!– Mage_Catalog –>
<reference name=”left”>
<block type=”directory/currency” name=”currency” before=”cart_sidebar” template=”directory/currency.phtml”/>
</reference>
<reference name=”right”>
<block type=”directory/currency” name=”currency” before=”cart_sidebar” template=”directory/currency.phtml”/>
</reference>
</default>
Comment the other node as show below
<!–<catalog_category_default>
<reference name=”left”>
<block type=”directory/currency” name=”currency” before=”catalog.leftnav” template=”directory/currency.phtml”/>
</reference>
</catalog_category_default>–>
<!–<catalog_category_layered>
<reference name=”left”>
<block type=”directory/currency” name=”currency” before=”catalog.leftnav” template=”directory/currency.phtml”/>
</reference>
</catalog_category_layered>–>
Thanks Siddharth Jain!!
It’s working fine, one can easily display switcher on any side by using this script.
Please share a script which displays the currency switcher at header & footer.
Check this extension having more features related to currency switching – http://ow.ly/NOriP