My client would like to add a second email field to the customer's profile, so that we can associate a sales rep with each account who will receive copies of everything sent to the customer. Has anyone done anything like this?
Thanks
My client would like to add a second email field to the customer's profile, so that we can associate a sales rep with each account who will receive copies of everything sent to the customer. Has anyone done anything like this?
Thanks
I had planned to do something like this, but haven't got to it yet.
In my case, the extra email address wouldn't be entered on the Create Account page, but added later in Admin. I was going to disable the email verification process (which checks for a valid email address) in the Edit Customer Details to see if that would let me add a second address, separated by a comma.
If not, I'll check to see how multiple addresses are handled in Admin - Configuration - Email Options to see if I can adapt that method.
If I get to it soon, I'll post back.
Interesting thought... So just disable the form validation and see if it sticks two addresses in the same record separated by commas. We also would probably just do it on the admin side too. I may try this, I'll post back if I get it working.
This worked for me:
Comment out or delete lines 151-163 in admin/customers.php
Then you can edit a customer in Admin and add an email address (preceded by a comma).
Two things -
Obviously, there won't be any validation of the address, so enter carefully.
There are no overrides in Admin yet, so you'll have to re-do the file edit when you upgrade to future versions.
The only problem I can see with this is that if the customer goes into their account info to change their email address, it will show both, and they can overwrite them.
It's definitely an easier hack than adding a new customer field and having it spit that out in orders.php, though I think I see where to do that. Waiting to see what my client decides on whether or not they want to pay me to stick several new customer fields in, in which case I'll just do it all in one fell swoop. If I go through the process of adding a second customer email, I'll post the walk through here.
Actually, here's a bigger problem I found: Once you insert the second email address using the method above, you have to log in as "[email protected],[email protected]" or enter them like that to retrieve your password etc.
Think I gotta take the scenic route to solve this one.
I'm not as smart as I thought I was.
Back to the drawing board.
Bookmarks