在我的应用程序(Magento v1.7)中,我不希望用户在注册时输入密码。所以我在页面 app\design\frontend\base\default\template\persistent\customer\form\register.phtml 上注释掉以下代码
<ul class="form-list">
<li class="fields">
<div class="field">
<label for="password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
<div class="input-box">
<input type="password" name="password" id="password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
</div>
</div>
<div class="field">
<label for="confirmation" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
<div class="input-box">
<input type="password" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" class="input-text required-entry validate-cpassword" />
</div>
</div>
</li>
<?php echo $this->getChildHtml('persistent.remember.me'); ?>
</ul>
但警告消息“密码不能为空。” 注册时仍然显示。如何删除此警告消息?
非常感谢