2
A
回答
6
在customer.xml后显示我的帐户链接它看起来像
前<default>
<!-- Mage_Customer -->
<reference name="top.links">
<action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action>
</reference>
</default>
<customer_logged_in>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer"><label>Log Out</label><url helper="customer/getLogoutUrl"/><title>Log Out</title><prepare/><urlParams/><position>100</position></action>
</reference>
</customer_logged_in>
从default
标签删除我的帐户链接到Customer_logged_in
与
更改后更改它在customer.xml
<default>
<!-- Mage_Customer -->
<reference name="top.links">
</reference>
</default>
<!--
Load this update on every page when customer is logged in
-->
<customer_logged_in>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action>
<action method="addLink" translate="label title" module="customer"><label>Log Out</label><url helper="customer/getLogoutUrl"/><title>Log Out</title><prepare/><urlParams/><position>100</position></action>
</reference>
</customer_logged_in>
希望这将肯定帮你。
0
<customer_logged_in>
<reference name="top.links">
<action method="addLink" translate="label title">
<label>Your Account</label>
<url helper="customer/getAccountUrl" />
<prepare/>
<urlParams/>
<liParams>
<id>header-account-link</id>
</liParams>
<aParams/>
<beforeText/>
<afterText/>
</action>
</reference>
+0
请解释你的答案与随附的代码。 – kingdamian42
相关问题
- 1. Facebook账户登录在webview
- 2. 用facebook账户登录
- 3. IAM用户如何登录AWS账户?
- 4. 提示fb登录不只是显示登录按钮
- 5. 我想让别人用Google账户登录我的网站
- 6. 只显示来自登录用户的帖子的Wordpress评论
- 7. 显示登录到我的网站的用户的用户名
- 8. 显示信息页面只登录和特定的客户群
- 9. 只显示WordPress登录用户的具体类别
- 10. Sonata Admin - 只允许显示登录用户创建的内容
- 11. 如何登录沙盒Paypal账户
- 12. 春季社交账户登录
- 13. Paypal沙盒测试账户登录?
- 14. Ionic FB账户KIT登录短信
- 15. 爬虫登录到Gmail邮箱账户
- 16. 用亚马逊账户登录
- 17. PHP Oauth API通过Hotmail账户登录
- 18. AngularJS - 用于交换登录/我的账户部分的变量
- 19. 登录屏幕只显示一次
- 20. 只显示基于注册登录
- 21. 显示登录的用户asp.net
- 22. fbml显示登录的用户名
- 23. 显示已登录的用户信息
- 24. 显示的不是登录用户SQL
- 25. 我需要登录后只显示一个窗口(Ubuntu的)
- 26. 只有当用户登录时才会显示文章
- 27. WooCommerce显示付款网关登录客户只有
- 28. 需要显示登录用户成功登录后的名称
- 29. 如何让用户在另一个登录时登录新的fb账户
- 30. Android设备上的电池使用时间是什么?登录谷歌账户vs不登录谷歌账户?
这是解决我的问题,THX – user1958112
精彩的如此简单和直接。这可以使用local.xml实现吗?有时我觉得懒惰的主题文件;-) – echoashu