如何在magento的页脚中添加订单和退货后的自定义链接
有人能告诉我如何定位后,订单和返回链接和联系我们之前的自定义链接? 我已经使用local.xml中的代码片段添加了链接:如何在magento的页脚中添加订单和退货后的自定义链接,magento,hyperlink,customization,footer,Magento,Hyperlink,Customization,Footer,有人能告诉我如何定位后,订单和返回链接和联系我们之前的自定义链接? 我已经使用local.xml中的代码片段添加了链接: <reference name="footer_links"> <action method="addLink" translate="label title"> <label>Link1</label> <url>Link1</url> <title>Link1<
<reference name="footer_links">
<action method="addLink" translate="label title">
<label>Link1</label>
<url>Link1</url>
<title>Link1</title>
<prepare>true</prepare>
</action>
</reference>
但我不能把订单和联系我们之间的联系联系。
1不工作
请指教 我这样做的方式是在PACKAGE/TEMPLATE/app/TEMPLATE/page/html/footer.phtml中创建一个footer.phtml,调用我使用所需链接构建的CMS页脚页面
<div class="footer-container">
<div class="footer">
<div class="quicknavHolder"><?php echo $this->getChildHtml('topLinks') ?></div>
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('sm-footer')->toHtml(); ?>
<address><?php echo $this->getCopyright() ?></address>
</div>
然后在名为sm footer的CMS块中,我将所有我想要的链接按我想要的顺序排列
<center>
<table style="padding-bottom: 15px; text-transform: uppercase;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><!--Privacy Policy-->{{widget type="cms/widget_page_link" template="cms/widget/link/link_block.phtml" page_id="63"}}</td>
<td style="padding: 0 12px;">|</td>
<td><!--FAQ-->{{widget type="cms/widget_page_link" template="cms/widget/link/link_block.phtml" page_id="44"}}</td>
<td style="padding: 0 12px;">|</td>
<td><!--My Account--><a href="{{store url="customer/account"}}">My Account</a></td>
<td style="padding: 0 12px;">|</td>
<td><!--Contact Us-->{{widget type="cms/widget_page_link" template="cms/widget/link/link_block.phtml" page_id="45"}}</td>
<td style="padding: 0 12px;">|</td>
<td><!--Category Sitemap--><a href="{{store url='catalog/seo_sitemap/category/'}}">Category Sitemap</a></td>
</tr>
</tbody>
</table>
</center>
这只是一个选择。自己解决那个问题。 在app\design\frontend\customtheme\default\layout\contacts.xml中添加以下代码:
<action method="addLink" translate="label title"><label>mylinklabel</label><url>mylink-url</url><title>mylinktitle</title><prepare>true</prepare></action>