Make email address optional?

Discussion in 'Customization & add-ons' started by erikcw, May 13, 2006.

  1. erikcw

    erikcw New Member

    Joined:
    Nov 15, 2004
    Messages:
    54
    Hi all,

    I'm working on a project where we're taking orders by phone. Allot of our customers don't have email addresses. What function do I need to modify to make an email address optional?

    Thanks!
    Erik
  2. alex

    alex Administrator Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,020
    edit signup.php and remove or comment out:

    if (!check_email($vars['email'])){
    $error[] = 'Please enter valid Email';
    } elseif (($config['unique_email'] && $member_id <= 0) &&
    $db->users_find_by_string($vars['email'], 'email', 1)){
    $error[] = 'An account with the same email already exists.<br>Please <a
    href="member.php">login</a> to your existing account.<br>If you have not complet
    ed payment, you will be able to complete it after login<br>';
    }

Share This Page