Magento 2, Magento Development, Customization, Extension Development and Integration, Optimization, SEO and Responsive Design

Magento 2, Magento Development, Customization, Extension Development and Integration, Optimization, SEO and Responsive Design

How to add or enable currency switcher in header Magento

If you want to enable currency switcher in your header than follow this easy step.

Currency switcher Magento

Step 1: Admin setting
You might have noticed the ”Currency Setup” tab in Magento’s Administration under “System->Configuration” menu. There you should select default site currency, and besides that, all currencies you want to support.

Magento Currency switcher

After that, you should go to “System->Manage Currency Rates” and set rates for currencies you’ve chosen before. You can use Webservicex to import currency rates from Webservicex service. Here’s how it looks like:

Magento Currency switcher

Step 2: Open /app/design/frontend/default/[YOUR THEME]/layout/page.xml
Add this line of code
<block type="directory/currency" name="currency" template="directory/currency.phtml"/>
After
<block type="page/html_header" name="header" as="header">

Step 3: Open /app/design/frontend/default/[YOUR THEME]/template/page/html/header.phtml
Add
<?php echo $this->getChildHtml('currency') ?>
After
<?php echo $this->getChildHtml('store_language') ?>

Please support us, Like us on Facebook.

0 comments:

Post a Comment

 

Copyright @ 2017 HKBlog.