javascript - How to remove email validation in opencart 2.1 for register account form? -


i trying register customer phone number instead of email id remove email address validation

thanks!!

you may try this:

in catalog/controller/checkout/register.php

find (line 149):

if ((utf8_strlen($this->request->post['email']) > 96) || !filter_var($this->request->post['email'], filter_validate_email)) {     $json['error']['email'] = $this->language->get('error_email'); } 

and comment out.

in catalog/controller/checkout/guest.php

find (line 203):

if ((utf8_strlen($this->request->post['email']) > 96) || !filter_var($this->request->post['email'], filter_validate_email)) {     $json['error']['email'] = $this->language->get('error_email'); } 

and comment out.

hope you.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -