Change the email of Ecshop Member registration page to non-mandatory
Ecshop Tutorial/Ecshop Tutorial Net (www.ecshop119.com) 2011-07-29
Some people say that in the background of "Member registration settings" Inside can not control whether it is required?? I've come across several people who say so.
In fact, he is not serious about the problem, it is said that the member registration page of the email changes to non-mandatory, note is email, the "Member registration Settings" is not included in the email
Gossip less, here's the way,
Note This method is modified on the Ecshop2.7.2 version, as modified for the previous version.
1),
First to modify the template file, here is the official default template for example
Open/THEMES/DEFAULT/USER_PASSPORT.DWT File
Found it
Onblur= "Checkemail (this.value);"
Delete it and continue to find it down
<span id= "Email_notice" style= "color: #FF0000" > *</span>
Also delete it
2),
Open the/js/user.js file, find the following JS code snippet and delete it (about 466 lines)
if (Email.length = = 0) { msg + = Email_empty + ' \ n '; } Else { if (! (Utils.isemail (email))) { msg + = Email_invalid + ' \ n '; } } |
3),
Opens the/includes/lib_passport.php file,
Find the following code, also delete (about 40 rows or so), note that the deletion
/* Check email * * if (empty ($email)) { $GLOBALS [' Err ']->add ($GLOBALS [' _lang '] [' email_empty ']); } Else { if (!is_email ($email)) { $GLOBALS [' Err ']->add (sprintf ($GLOBALS [' _lang '] [' email_invalid '], Htmlspecialchars ($email))); } } |
4),
Continue to open includes/modules/integrates/integrate.php file
Find the following code to delete (about 196 rows or so)
/* Check if email is duplicated */
$sql = "Select". $this->field_id.
"From". $this->table ($this->user_table).
"WHERE". $this->field_email. "= ' $email '";
if ($this->db->getone ($sql, True) > 0)
{
$this->error = err_email_exists;
return false;
}
Change the email of Ecshop Member registration page to non-mandatory