I have created a e-commerce site, in that when anonymous user purchase a product during checkout process it should automatically created a account and assign order to the user. For existing user it should it should log in and assign order to him. Is there any module to do this or else how can achieve this.

I have tried https://www.drupal.org/project/commerce_checkout_complete_registration it works fine for new user. When I enter existing user email site goes to Maintenance mode.

  • If I remember correctly, the default commerce behaviour is when anonymous user buys, they have to fill out an e-mail field which is used to create their account and their user name is their e-mail. They don't get logged in though.
    – No Sssweat
    Commented Nov 7, 2015 at 5:47

1 Answer 1


Commerce Checkout Login includes this functionality.

If you just want a rule action to automatically log a user in, then use simongeorge's wonderful sandbox. It provides a rule action that allows you to do just that.

  • Commerce checkout login modules works fine for existing users only @nvahalik
    – user50991
    Commented Nov 16, 2015 at 9:40
  • @Harsha, Commerce ships with a rule to create a user. And you can use that as well.
    – nvahalik
    Commented Nov 16, 2015 at 14:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.