Magento登录页面

Magento登录页面,magento,Magento,如果我想在Magento注册页面中不强制使用姓氏 我怎么能这么做 请帮助我或为我指出正确的方向,这样我就不会干扰系统的其余部分 我就是这么做的 I went to the template file Customer/widget/name.phtml then in div class field name-lastname i remove the class="required" 请确认它不会弄乱Magento的任何其他部分 谢谢你所做的是正确的。它不会影响别人 进行验证的文件是/a

如果我想在Magento注册页面中不强制使用姓氏 我怎么能这么做

请帮助我或为我指出正确的方向,这样我就不会干扰系统的其余部分

我就是这么做的

I went to the template file Customer/widget/name.phtml 
then in div class field name-lastname  i remove the class="required"
请确认它不会弄乱Magento的任何其他部分


谢谢你所做的是正确的。它不会影响别人

进行验证的文件是/app/code/core/Mage/Customer/Model/Customer.php

  if (!Zend_Validate::is( trim($this->getLastname()) , 'NotEmpty')) {
        $errors[] = Mage::helper('customer')->__('Last name can\'t be empty');
    }
请覆盖这个

您也可以转到
eav\u属性
表,您可以找到
lastname
(id-7)列。请将
设置为0