How to remove default newsletter registration form email validation magento to add phone number? In resume, to replace e-mail by phone number. Magento 1.9.0.0
Thanks!
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityHow to remove default newsletter registration form email validation magento to add phone number? In resume, to replace e-mail by phone number. Magento 1.9.0.0
Thanks!
You can change this via custom coding.
You have to override the newAction
method of the file app/code/core/Mage/Newsletter/controllers/SubscriberController.php
and remove these line from that method
if (!Zend_Validate::is($email, 'EmailAddress')) {
Mage::throwException($this->__('Please enter a valid email address.'));
}
change the html validation here : app/design/frontend/{namespace}/{theme}/template/newsletter/subscribe.phtml
Change input type from email
to text
from field email
Remove class validate-email
from field email