Create a new account for an anonymous order (HTML) Rule is the culprit here. If I disable it the problem goes away.
The issue is that on successful checkout the anonamous user is redirected to the home page vs seeing the order completion message. If they hit back they can see the confirmation page.
You can see the rule here: http://i.imgur.com/8eooZPu.png or here http://pastebin.com/96Bdk8gi
Any idea why the rule would redirect to the home page when it fires?
This does not happen for authenticated users, or users that enter an email address of a user that is already in the system.
This issue causes a really bad first impression to new users.

Comments

royerd’s picture

Issue summary: View changes

Did you ever figure out what is going on? I have the same issue.

deardagny’s picture

I still see this behavior from time to time – only once in a while so it's tough to reproduce for me.

jaskaran.nagra’s picture

+1 for this issue

jaskaran.nagra’s picture

I obviously haven't put enough time into it but looks like this is something commerce module maintainers should look at.

For the moment though, this small rule fixes this bug:

{ "rules_bug_fix_redirect_to_home_page_for_anonymous" : {
"LABEL" : "Bug Fix: Redirect to Home page for anonymous",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "commerce_checkout" ],
"ON" : { "commerce_checkout_complete" : [] },
"DO" : [
{ "redirect" : { "url" : "checkout\/[commerce-order:order-id]\/complete" } }
]
}
}

Rule Explanation:

Event: commerce checkout complete
Condition: No condition
Action: System->page redirect to "checkout/[commerce-order:order-id]/complete"

rszrama’s picture

Status: Active » Closed (outdated)