1 添加Register链接
Magento前台默认没有Register链接,如果用户需要注册,需要点击Login链接,再点击Create an Account,才能开始注册,不是很方便,如果需要在前台显示Register链接,可以修改/app/design/frontend/default/default/layout/local.xml:
- <?xml version="1.0"?>
-
<layout>
-
<customer_logged_out>
-
<reference name="top.links">
-
<action method="addLink" translate="label title" module="customer"><label>Register</label><url helper="customer/getRegisterUrl"/><title>Register</title><prepare/><urlParams/><position>101</position></action>
-
</reference>
-
</customer_logged_out>
-
</layout>
2 添加About Us链接
修改/app/design/frontend/default/default/layout/local.xml:
- <?xml version="1.0"?>
-
<layout>
-
<default>
-
<reference name="top.links">
-
<action method="addLink" translate="label title"><label>About us</label><url>about-us</url><title>About us</title><prepare/><urlParams/><position>200</position></action>
-
</reference>
-
</default>
-
</layout>
3 添加Contact Us链接
修改/app/design/frontend/default/default/layout/local.xml:
- <?xml version="1.0"?>
-
<layout>
-
<default>
-
<reference name="top.links">
-
<action method="addLink" translate="label title" module="contacts" ifconfig="contacts/contacts/enabled"><label>Contact Us</label><url>contacts</url><title>Contact Us</title><prepare>true</prepare></action>
-
</reference>
-
</default>
-
</layout>
阅读(1595) | 评论(0) | 转发(1) |