亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

Magento 顯示下拉貨幣 How to add Currency sel

系統 1738 0

Since Magento has built in functionality for currencies, it shouldn’t be too hard to create custom currency selector and put it to the header. You might say this tutorial is for beginners, since it’s pretty much straightforward.

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.

?

Here’s a screenshot of that tab:

?

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:

?

And now, after you’re done with initial setup, let’s go further with modifications to make that output shows in the header.

?

If you would like to move the currency switcher from the left column to the header, you can use the following instructions to do so!


Open /app/design/frontend/default/default/layout/page.xml (or under your theme)
Locate:

      <block type="page/html_header" name="header" as="header">
    

?

Change to:

      <block type="page/html_header" name="header" as="header">
    <block type="directory/currency" name="currency" template="directory/currency.phtml"/

    ...

</block>
    

?

Open /app/design/frontend/default/default/template/page/html/header.phtml (or under your theme)
After:

      <?php echo $this->getChildHtml('store_language') ?>
    

?

Insert:

      <?php echo $this->getChildHtml('currency') ?>
    

?

Save, Upload + Clear Cache
Make sure you have imported or manually entered your Currency Rates otherwise the switcher will not appear!


Its as simple as that!!

?

from:

http://inchoo.net/ecommerce/magento/how-to-add-currency-selector-to-magentos-header/

http://www.pauldonnelly.net/magento-move-currency-switcher-to-the-header/

?

?

Magento 顯示下拉貨幣 How to add Currency selector to Magento’s header


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!??!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 国产成人小视频在线观看 | 欧美xxx4k精品hd | 久久久久久久国产 | 婷婷免费高清视频在线观看 | 色综合久久中文色婷婷 | 久久成人精品视频 | 50-60岁老妇女一级毛片 | 国产国产成人人免费影院 | 国产精品中文 | 激情综合五月亚洲婷婷 | 中国女人精69xxxxxx视频 | 欧美α片无限看在线观看免费 | 亚洲国产精品yw在线观看 | 香蕉视频97| 国产成人亚洲综合小说区 | 亚洲国产精品综合久久网络 | 一本到视频在线观看 | 国产精品区一区二区三 | 毛片大片| 亚洲国产天堂久久九九九 | 色偷偷久久一区二区三区 | 天天草比| 成年女人永久免费观看片 | 天天干天天色天天干 | 国产精品久久久久9999高清 | 国产a自拍 | 极品俄罗斯性孕妇孕交 | 久久精品国产线看观看亚洲 | 99久久精品国产国产毛片 | 国产伦精品一区二区三区免费迷 | 一本色道久久综合一区 | 欧美一级高清毛片aaa | 四虎影视国产精品永久在线 | 国产成人18黄网站免费 | 亚洲艹逼| 国产成人综合久久精品亚洲 | 久久精品94精品久久精品 | 成人在线天堂 | 国产精品久久久久久久久久久威 | 免费a一级毛片在线播放 | 日韩小视频 |