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

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -