有人可以告诉我如何在订购后定位自定义链接并返回链接并在联系我们之前? 我已经使用local.xml中的代码片段添加了链接:
<reference name="footer_links">
<action method="addLink" translate="label title">
<label>Link1</label>
<url>Link1</url>
<title>Link1</title>
<prepare>true</prepare>
</action>
</reference>
但我无法在订单和联系人之间建立链接。
<position>1</position>
无法正常工作
请建议!!!
答案 0 :(得分:0)
我这样做的方法是在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 Block中,我按照我想要的顺序放置了我想要的所有链接。
<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>
这只是一个选择。
答案 1 :(得分:0)
自己解决这个问题。
在app \ design \ frontend \ customtheme \ default \ layout \ contacts.xml中添加<reference name="footer_links">
以下代码:
<action method="addLink" translate="label title"><label>mylinklabel</label><url>mylink-url</url><title>mylinktitle</title><prepare>true</prepare></action>