Log In new user account for anonymous after checkout
Is it possible to log in a newly created user after they checkout and an account is created with their email address? The summary shows links that the user can click on if they are logged in, but they aren't accessible to an anonymous user.
Comments
"You can view your order" link on checkout page not accessible
Looks like the default settings prevented this. http://drupal.org/node/1233026
It's still a little unfriendly that the anonymous user gets access denied until they log in to view their order.
Please take a look at http:/
Please take a look at http://atendesigngroup.com/blog/express-checkout-drupal-commerce
Using a rules
Hi,
I've published a sandbox that adds a "immediate login" rules to new account creation so the user ends up logged in. Let me know if it doesn't work for you.
I tried the link in the box,
I tried the link in the box, and cannot access the file.
I got the git file. I forgot
I got the git file. I forgot to init my local folder.
I notice you mention needing a rule for immediate login.
Maybe you could do a walk through for building the rule as you have it working.
Also, I think a password should be created ASAP when customer creates account.
Email should be used as login UID, entering email twice is not a bad idea either. It will eliminate errors for users.
Email for UID will usually eliminate any possible dups or nicknames that people don't keep up with on sites they don't use often.
All the back and forth to email annoys people.
Verfication of email is critical for sure, but I'm not sure of a best way to verify without customer responding to email clickon or something along those lines.
Unfortunately...
Unfortunately, the Rules action uses some Drupal core code, so I had to programmatically create the action. That said, once the action is created, you just could manually add it through the interface to the appropriate existing Commerce rule. I try to do it automatically to limit the actions needed by the module user to have it working, but it's totally do-able.
Commerce Immediate Login module step-by-step
Instructions on how to automatically log in the user after payment can be found at: http://s1l.org/automatic-user-login-anonymous-checkout
It applies Simon's Commerce Immediate Login module.