Forums / General Questions / Why is the customer email address stored in the orders table???

Why is the customer email address stored in the orders table???

Locked

Views: 1,448

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
7 Aug 2009, 8:36 PM
#1
ipc1 avatar

ipc1

New Zenner

Join Date:
Aug 2009
Posts:
9
Plugin Contributions:
0

Why is the customer email address stored in the orders table???

If a customer places an order and then changes their email address in the My Account area, they do not receive any email updates since the system sends the email to their old address.

Shouldn't the mail routine be using the email address from the customers table rather than the orders table?

11 Aug 2009, 6:12 AM
#2
ipc1 avatar

ipc1

New Zenner

Join Date:
Aug 2009
Posts:
9
Plugin Contributions:
0

Re: Why is the customer email address stored in the orders table???

Hellooooooo???

11 Aug 2009, 6:16 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: Why is the customer email address stored in the orders table???

All the customer/order data is stored as a snapshot as at the point-in-time when the order was taken. Surely you wouldn't want a customer altering important information such as address details and phone numbers etc and then claiming that they never received their goods ... because you'd sent it to one place and then they changed the details later. The email address is part of that snapshot.

If you'd like to change that functionality, you're certainly welcome to alter it to suit your needs.

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

11 Aug 2009, 9:29 PM
#4
ipc1 avatar

ipc1

New Zenner

Join Date:
Aug 2009
Posts:
9
Plugin Contributions:
0

Re: Why is the customer email address stored in the orders table???

::sigh::

I guess data redundancy is not frowned upon by everyone afterall.

Look at the registration process as it has been designed. You have a section for "Personal Details" and a different section for "Login Details" and the email address is captured under "Login Details" (as it should be).

Then, in the "My Account" section you have the email mixed in with the "Personal Details" which seems rather odd, considering that you have to use your email address to Login.

Oh well.

Still, it's a great product for the price. ;)