Forums / Managing Customers and Orders / Can I use an external Account Number as customer username, instead of email?

Can I use an external Account Number as customer username, instead of email?

Started by oavs on 20 Jul 2016, 6:30 AM · Views: 1,113

Results 1 to 3 of 3
20 Jul 2016, 6:30 AM
#1
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Can I use an external Account Number as customer username, instead of email?

Hi

I have an instance where customers already have an unique account/customer number elsewhere in another manual system.

Now they want Zencart to handle their buying etc but they want same customers to be added with their existing 'customer account numbers'. Using the DrByte's code here is fine but is there anyway that this customer account number can be added rather than auto generated and basically assigned manually by admin then it would show on their purchases and correspondence, welcome email etc.?

Downunder QLD

10 Dec 2016, 1:27 AM
#2
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Can I use an external Account Number as customer username, instead of email?

Hi

In my case customers have already their 'Account/Customer Number' with the company . Company now going online and they would like to use their existing 'Account/Customer Numbers' in their system as user name when customers are creating their online accounts.

Currently Zencart uses email address as the user.

Is there a way that.

  1. Adding a new field as 'Account/Customer Number: ' when they register

so that also can be varified as

  1. 'if Account/Customer Number exists and correct'

  2. 'if email exists and correct '

  3. 'if password exists and correct '
    = LOGIN > if not = LOGOUT

  4. 'if Account/Customer Number does NOT exists and it is NEW'

  5. 'if email does NOT exists and it is NEW'

  6. 'if password does NOT exists and it is NEW'
    = REGISTER

how else can I do this?

Downunder QLD

11 Dec 2016, 7:09 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Can I use an external Account Number as customer username, instead of email?

To clarify, you're asking how to let them use "either the account number or their email address" to login to their account (instead of just email address), right?

.
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.