2012-05-21 87 views
0

我正在開發一個使用magento的電子商務網站。我有兩家網店和一家主店。我想在我的主頁上添加一個彈出窗口,以便用戶可以選擇一個選項以轉到任一網站。在這方面請幫助我。magento主頁定製

謝謝

回答

0

在Magento 1.6.2及以下,(我沒在1.7檢查,但它應該是有太多)採取該文件夾的應用程序查看/設計/前端/基/默認/模板/ page/switch /,你會找到你需要的模板stores.phtml。

您還可以在app/design/frontend/base/default/layout/page.xml中找到page.xml佈局文件,搜索行<block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>

您將有兩種解決方案:

  • 對我來說,這不是最好的解決辦法,但你可以用語言切換複製page.xml,放入您的自定義模板文件夾,並在 它取代線這條線 <block type="page/switch" name="stores_switch" as="stores_switch" template="page/switch/stores.phtml"/>
  • 或者創建擁有它的佈局文件一個新的模塊放在您的自定義模板,並設置以下行到 mymodulelayout.xml佈局:<reference name="header"><block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/> </reference>

這是一個很好的開始,使您的模板適應這些信息。我沒有測試它。