在哪里编辑页脚链接Magento 1.9

win*_*h24 2 footer magento-1.9

我正在试图找出在magento 1.9中编辑页脚链接的位置,但我找不到任何东西,我将在近3小时内搜索它但没有成功.对不起,我只是一个magento的新手.我想编辑"QUICK LINKS""ACCOUNT"下的链接我找到了公司下的链接,它在静态块下的magento后端,但两者都没有成功. 在此输入图像描述 谢谢

Ada*_*ean 6

这些链接添加在多个布局文件中.最简单的方法是在"layout/*.xml"文件中对"footer_links"短语进行目录搜索(在IDE中).您将看到在sales.xml,customer.xml或cms.xml中设置了一些链接.例如,在sales.xml的底部,您应该看到如下内容:

<default>
    <reference name="footer_links2">
        <block type="sales/guest_links" name="return_link"/>
        <action method="addLinkBlock"><blockName>return_link</blockName></action>
    </reference>
</default>
Run Code Online (Sandbox Code Playgroud)

这告诉Magento将"订单和退货"链接添加到页脚中的"帐户"块.如果将footer_links2更改为footer_links,此链接将最终出现在"快速链接"块中.我想一旦你找到了这个,你就会弄明白其余的.


小智 5

其他链接和标题通过布局系统设置:

page.xml:

        <block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
            <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
                <label>Page Footer</label>
                <action method="setElementClass"><value>bottom-container</value></action>
            </block>
            <block type="page/switch" name="store_switcher" as="store_switcher" after="*" template="page/switch/stores.phtml"/>
            <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml">
                <action method="setTitle"><title>Quick Links</title></action>
            </block>
            <block type="page/template_links" name="footer_links2" as="footer_links2" template="page/template/links.phtml">
                <action method="setTitle"><title>Account</title></action>
            </block>
            <!-- This static block can be created and populated in admin. The footer_links cms block can be used as a starting point. -->
            <!--<block type="cms/block" name="footer_social_links">
                <action method="setBlockId"><block_id>footer_social_links</block_id></action>
            </block>-->
        </block>
Run Code Online (Sandbox Code Playgroud)

然后在catalog.xml中添加链接:

<reference name="footer_links">
<action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title></action>
Run Code Online (Sandbox Code Playgroud)