I tried a very often used method so that the telephone field is not required during registration, but it does not seem to work with Magento 1.4.2
I made a copy
magento / app / code / core / Mage / Customer / Model / Address / Abstract.php
to
Magento / application / code / local / Mage / Client / Model / Address / Abstract.php
and removed the following code from the verification function in this file
if (!Zend_Validate::is($this->getTelephone(), 'NotEmpty')) {
$errors[] = $helper->__('Please enter telephone.');
}
I also deleted
class="input-text required-entry"
from register.phtml file, but I can not pass the check. I keep getting an error
"Phone" is a required value. The length of the "Phone" must be equal to or greater than 1 character.
thank
source
share