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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -