magento语言切换器未显示

时间:2015-10-15 10:11:26

标签: php magento magento-1.9

所有

我为朋友pagayo electronics安装了magento主题,并且由于某种原因,我们更改模板后语言切换器消失了。

你有什么想法吗?>

在新模板文件/ magento / app / design / frontend / default / pagayo-theme-001 / template / page / html / header.phtml中,语言选择器存在以下内容:

<div class="header-right">
            <?php echo $this->getChildHtml('topContainer'); ?>


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


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

    <p class="welcome-msg"><?php echo $this->getChildHtml('welcome') ?> <?php echo $this->getChildHtml('accountLinks') ?></p>
            <div class="clearer"></div>
            <div class="welcome-msg">
                <?php echo $this->getWelcome() ?> <?php echo $this->getAdditionalHtml() ?>
            </div>
        </div>
        <div class="clearer"></div>
    </div>

以及文件/ magento / app / design / frontend / default / pagayo-theme-001 / layout / page.xml中存在以下语言

  <block type="page/html_header" name="header" as="header">
            <block type="page/template_links" name="top.links" as="topLinks"/>
            <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
            <block type="core/text_list" name="top.menu" as="topMenu" translate="label">
                <label>Navigation Bar</label>
                <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
            </block>
            <block type="page/html_wrapper" name="top.container" as="topContainer" translate="label">
                <label>Page Header</label>
                <action method="setElementClass"><value>top-container</value></action>
            </block>
        </block>

如果您有任何想法会很棒。记得magento版本是1.9.2.1,我安装的主题是: http://www.magentocommerce.com/magento-connect/free-theme-electronics-online-by-pagayo.html

如果我从浏览器查看前端生成的代码,则没有关于语言切换的代码。如果我返回默认主题,代码和语言切换器就在那里。

0 个答案:

没有答案
相关问题