eb_*_*Dev 2 login logout magento-1.6
我有一个很好的搜索,发现customer_logged_in和customer_logged_out标签,但我不能让他们正常工作,这我肯定是由于我对他们的误解.
我的目标是隐藏在日志中,帐户和从块结帐链接top.links,当用户不登录,并告诉他们,当用户正在登录.
我已在local.xml文件末尾放置以下内容以尝试删除登录链接:
<customer_logged_in>
<reference name="top.links">
<action method="removeLinkByUrl"><url helper="customer/getLoginUrl"/></action>
</reference>
</customer_logged_in>
</default>
Run Code Online (Sandbox Code Playgroud)
但它不起作用.有人可以解释为什么这不起作用?这让我疯狂!
小智 7
在我的情况下删除local.xml中的链接.这是代码:
<customer_logged_in>
<reference name="top.links">
<action method="removeLinkByUrl"><url helper="customer/getLogoutUrl"/></action>
</reference>
</customer_logged_in>
<customer_logged_out>
<reference name="top.links">
<action method="removeLinkByUrl"><url helper="customer/getLoginUrl"/></action>
</reference>
</customer_logged_out>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9160 次 |
| 最近记录: |