Currency switcher in magento left or right sidebar


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>–>

Advertisements

One thought on “Currency switcher in magento left or right sidebar

  1. 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

Leave a Reply to Paul Stanely Cancel reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.