Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2010
    Posts
    87
    Plugin Contributions
    0

    help question Customer Log-In : Not Email Address?

    I have the need for customers to be able to log in by using an 8-digit number as their username that we allocate for them. They can't log in with an email address as the default settings indicate.

    Where can I change it so they can log in with the 8-digit number (and even change the language so it says "Account Number" instead of "Email Address" at the login page)?

    Also hoping to get rid of the requirement of having an email address... a lot of my customers don't have one.

    Any help greatly appreciated!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Customer Log-In : Not Email Address!

    Zen Cart customer-login is built around using the email address as the unique identifier for each customer.
    If you wish to change that, you'll need to change the authentication logic, which will require you to add your own "number" field to the database, and then use that number as the lookup criteria in the login process in the /includes/modules/pages/login/header_php.php

    You'll probably need to remove the /includes/modules/create_account/ folder altogether since it sounds like you don't want any new customers to sign up.

    Also note that making these changes will require redoing those changes in future upgrades, so be sure to take careful notes of whatever you do.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v139h Customer Email Address Not Saved
    By benjaminventura in forum Managing Customers and Orders
    Replies: 2
    Last Post: 15 May 2014, 07:15 PM
  2. Customer details, -address not needed, only email
    By nigelt74 in forum General Questions
    Replies: 1
    Last Post: 23 Apr 2011, 07:14 AM
  3. Contact Us - email address default to site admin when customer not logged in!
    By zwolfinger in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 27 Sep 2009, 03:49 AM
  4. Replies: 4
    Last Post: 9 Jun 2009, 08:17 PM
  5. Paypal email notifications not showing customer address
    By indierockmedia in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 7 Oct 2007, 08:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg