客户无法登录我的magento 1.8.1商店。 当您填写电子邮件和密码并推送sudmit时,页面会刷新。 问题是什么? 我的商店是:www.stropdassenexpert.nl
非常感谢!
答案 0 :(得分:4)
问题是您的主题与1.8.1代码不兼容 1.8中有一项新的安全措施。 (几乎)每个POST必须包含会话表单密钥。 登录表格就是其中一种情况 添加以下行:
<?php echo $this->getBlockHtml('formkey'); ?>
在<form>
标记内的以下文件中。
app/design/frontend/{interface}/{theme}/template/persistent/customer/form/login.phtml
app/design/frontend/{interface}/{theme}/template/persistent/customer/form/register.phtml
app/design/frontend/{interface}/{theme}/template/customer/form/login.phtml
app/design/frontend/{interface}/{theme}/template/customer/form/register.phtml
我几乎可以肯定还有其他文件需要这个。如果其他内容无效,请将您的模板与base/default
中的模板进行比较,然后查看表单中是否缺少表单密钥。