贴心
全国7×24小时客服热线
安全
病毒杀除率高于99%
稳定
网站可用性高于99.9%
实力
服务68家上市企业及集团公司
点击数:20132015-07-22 10:59:05 来源: 外贸网站建设,深圳外贸网站建设,深圳网站建设,外贸商城网站制作-亿恩科技
magento忘记密码取回从1.6后改变机制,由1.6之前,在登录下选择忘记密码时,由邮件直接发送新生成的随机密码,
改成在邮件中一个重置密码的链接。
由于新旧版上的区别中,如果在模板中使用了customer.xml,由于定义上的问题,升级可能会有问题。
1.6版以前,密码的语法是: {{htmlescape var=$customer.password}}
1.6版以后,密码的链接语法是:
<a href="{{store
url="customer/account/resetpassword/"_query_id=$customer.id
_query_token=$customer.rp_token}}" style="color:#1E7EC8;">{{store
url="customer/account/resetpassword/"_query_id=$customer.id
_query_token=$customer.rp_token}}</a>
由于在customer.xml中缺少定义,会造成些链接无法访问
修在的作法是在customer.xml,增加如下:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<customer_account_resetpassword translate="label">
<label>Reset a Password</label>
<remove name="right"/>
<remove name="left"/>
<reference name="head">
<action method="setTitle" translate="title" module="customer">
<title>Reset a Password</title>
</action>
</reference>
<reference name="root">
<action method="setTemplate">
<template>page/1column.phtml</template>
</action>
<action method="setHeaderTitle" translate="title" module="customer">
<title>Reset a Password</title>
</action>
</reference>
<reference name="content">
<block type="customer/account_resetpassword"
name="resetPassword"
template="customer/form/resetforgottenpassword.phtml"/>
</reference>
</customer_account_resetpassword>
|
即可恢复正常!