All about Magento E-commerce Store.......MagentoForum: Magento: Show Currency Selector in right sidebar

Wednesday, August 24, 2011

Magento: Show Currency Selector in right sidebar


Here, I will show you how you can change the location of currency selector in Magento.
By default, the currency selector is displayed in the left sidebar. Here, I will show you how you can show it in right sidebar.
Showing currency selector in product view detail page
Put the following code in layout/directory.xml

<!--
Product default layout
-->
<catalog_product_view>
    <reference name="right">
        <block type="directory/currency" name="currency" before="-" template="directory/currency.phtml"/>
    </reference>
</catalog_product_view>
Showing currency selector in homepage
Go to Admin Panel -> CMS -> Manage Pages -> Edit Homepage
Click Custom Design tab in left sidebar
Write the following code in Layout Update XML box.
<reference name="right">
    <block type="directory/currency" name="currency" before="-" template="directory/currency.phtml"/>
</reference>
Hope this helps. Thanks.

No comments:

Post a Comment