Okay, this is gonna be long, so watch out!
paulm:
the time_out page and error message is a bit confusing when clicking checkout after account creation while the cart is empty, I know that is not what the customer is supposed to do but.....).
Yes, that was why I asked the first question in this thread. If they get to the create_account_success page with an empty cart and click on "continue" (which goes to the checkout_shipping page), they will get a timeout error.
I was trying to make it so that if the cart was empty, the create_account_success page would not appear and they would be redirected to the homepage or maybe even an alternate create_account_success where there are no "continue" buttons.
The code that DrByte gave me did not work (but I think our lines got crossed as to what I was trying to achieve). So what I have done instead is...
my create_account_success page has been altered to appear as if it not a create_account_success page. It's more of a "review the billing info you just entered page, if you were checking out then click here to continue, if you were not checking out, then click here to continue shopping" page. Hopefully if their cart is empty, they will click on "continue shopping" instead of "continue checkout" or they will get the timeout error.
paulm:
Then I logged out, created a new account using the same e-mail address and entered a password. Then logged out again and logged into the account. Then I checked my account and I saw the order I placed the first time, when I had not entered a password! Obviously (?) this is not what we want.
This is what my testing has uncovered..........
Scenario 1:
Customer checks out without entering a password.
They come back another day, checkout using the same email address, and this time enter a password.
Their account information only shows the address info and order info from the 2nd transaction where they entered a password (like it should).
This is all fine and dandy because the first time they ordered without entering a password, so that info isn't really supposed to be able to be viewed by them anyway.
Also, I would probably go into the db once a week and delete the customers who did not enter a password. In fact, is there a way to add to the admin, in the customer section, some type of asterisk or image next to their name that alerts us to whether or not a password was entered. That way we would have to go into phpmyadmin to see if the password field is filled? Then we could delete them directly from the admin.
Scenario 2:
Customer checks out with a password.
Customer comes back, enters same email address as before, but a new password.
If the customer ever comes back and tries to login, the second password they entered will not work. They can only login with the first password they entered. Now they won't be able to see order info from the second order. If they click on "forgot password" and get a temp password, it logs them into the first account, not the second one.
paulm:
A solution could be to let the customers choose if they want to create an account, and add a field to the customers table which stores this preference ("account_created"). And then check for this "account_created" field when a customers uses the same e-mail address a second time.
This would be wonderful. If only I knew how to code php..... (hint hint!)
So now I need to wrap my brain around this one! I'm pooped!
The alternative to all of this is to remove passwords and login altogether, but I'd like to keep it optional. I have shopped at a few sites where there was no "account" and finding out about order status was done through email. I send order confirmations and shipping confirmations via email anyway and don't see a point to an account for purposes of tracking orders. I do see a point to an account for purposes of saving addresses, saving products in the cart, that kind of thing.
(P.S. I have read EVERY thread on this topic and I don't want anyone to give me any crap about "this is the way Zen works" or "other sites require login", blah blah blah. I am just testing this and learning about Zen, this is not on a live site yet. I myself just want customers to enter a password and be done with it. I believe they should open an account. But unfortunately, not all of them feel this way and the whole point is for them to shop.)