如何在magento 1.7中创建登录页面?

时间:2017-03-15 05:37:13

标签: php magento login magento-1.7

如何在magento 1.7前端创建新的登录页面。将从表中提取用户标识和密码。我也想实现忘记密码的功能。

1 个答案:

答案 0 :(得分:0)

如果您使用的是cms页面,可以放置以下代码



{{block type="customer/form_login" name="customer_form_mini_login"  template="customer/form/mini.login.phtml"}}




或者,如果您正在使用.phtml文件,请添加以下行



<?php 
echo $this->getLayou()->createBlock('customer/form_login')->setTemplate('customer/form/mini.login.phtml')->toHtml();
?>
&#13;
&#13;
&#13;

如果您有任何疑问,请与我们联系。

谢谢,

Sagar的