-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra order is created after checkout is complete #4136
Comments
I think I have noticed it before too but it never really bothered me. I believe all pages or at least most of the pages within frontend will create an order for the user. Guess we only have to avoid creating new orders on the orders_controller/show action. |
I think it's important to only create an order after a user adds a product to cart. Reason is that when you look at the conversion rate or performance of the site, whether an visitor actually created an order is a pretty important metric. |
Yeah makes sense. Will take a look |
thx, man |
Everytime user was authenticated an order was created by visiting any page in frontend (if none were already associated with the current user) Fixes spree#4136 Conflicts: frontend/spec/controllers/spree/orders_controller_spec.rb
Version: 2-0-stable
Observed behavior: An extra new order is created after customers complete checkout process
Repro Steps:
Possible cause:
Once an order is complete, the session[:order_id] is set to nil. Before OrdersController#Show runs, the before filter set_current_order creates an extra order.
@radar @huoxito Can you take a look?
The text was updated successfully, but these errors were encountered: