Home » Magento25 August 2010

Magento: Show Currency Selector in header

Here, I will show you how you can change the location of currency selector to header in Magento.

I suppose that you have already enabled/setup Multiple Currency in your Magento shop. If not then here is how to do it:- Magento: Setup multiple currency shop

By default, the currency selector is displayed in the left sidebar. Here, I will show you how you can show it in header just below the language selector.

Create a new phtml file (template/directory/currency-top.phtml) and write the following code in it :-

Add currency_top block after store_language block inside header block of page.xml present around line #66 :-

Add getChildHtml(‘currency_top’) below getChildHtml(‘store_language’) in template/page/html/header.phtml like below :-

NOTE: Don’t forget to clear CACHE (System -> Cache Management) after you have made the above mentioned changes.

That’s all. Now, you will be able to see currency selector in the header of your site.

Hope this helps. Thanks.


Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed