Change the email of Ecshop Member registration page to non-mandatory

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.