2012-03-09 6 views
0

Magento登録ページで姓をMandatoryにしたくない場合はどうすればいいですか?Magentoログインページ

私はシステムの残りの部分を混乱させないように、正しい方向に助けてください。私は

I went to the template file Customer/widget/name.phtml 
then in div class field name-lastname i remove the class="required" 

やったことだ

は何をする権利であるのMagentoの任意の他の部分と文句を言わない混乱に

おかげ

答えて

0

をご確認ください。それは他人に影響を与えません。

検証を行い、ファイルがこのメソッドをオーバーライドしてください/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_attributeテーブルにアクセスしてください。lastname(id-7)の列があります。 is_requiredを0に設定してください。

関連する問題