Skip to content
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

Order Merging Deleting Orders in Backend Unexpectedly #1449

Open
ericsaupe opened this issue Sep 16, 2016 · 6 comments
Open

Order Merging Deleting Orders in Backend Unexpectedly #1449

ericsaupe opened this issue Sep 16, 2016 · 6 comments
Labels
changelog:solidus_core Changes to the solidus_core gem confirmed Validated report type:bug Error, flaw or fault

Comments

@ericsaupe
Copy link
Contributor

Here is how to recreate the issue:

Logged in user creates an order with something in their cart using the frontend
Admin user creates order in the backend
Admin adds something to order
Admin associates order with Logged in user on the Customer tab
Logged in user refreshes page (or really does anything) causing the orders to be merged
Admin user no longer has that order and the page throws a 404 due to the order being deleted.

I'm not sure what the proper fix is for it we've just seen it as unexpected order behavior for our admins.

@aitbw
Copy link
Contributor

aitbw commented Feb 26, 2019

Hello there @ericsaupe, tried to reproduce this issue, but no success with the current master revision (7665973)

Can you confirm if this issue is still occuring? If so, could you provide more details so I can have a further look on it?

@DanielePalombo
Copy link
Contributor

I was able to reproduce this issue.

The old order is destroyed (not canceled) after the merge, I was not able to replace the destroy with cancel because the order not completed can't be canceled.

@aldesantis
Copy link
Member

aldesantis commented Dec 15, 2019

We've seen this happening too, where customers would sign in causing guest and authenticated orders to be merged, and one of them (can't remember which one right now) would be deleted, so we'd have non-existing orders in our logs, which makes debugging things a nightmare.

This is expected behavior, but it's far from ideal. I think we could solve it by creating a special merged status for orders and then linking them to the new order. That way, we can also very easily redirect admins to the new order when the scenario described by @ericsaupe happens.

I could take a stab at this if everyone agrees with the approach.

@DanielePalombo
Copy link
Contributor

@aldesantis I started working on the same solution proposed by you!

@cesartalves
Copy link
Contributor

cesartalves commented Nov 22, 2022

Hey @spaghetticode! @kennyadsl Does closing nebulab#37 also entail we should perhaps have closed this issue as well? Or do we need to merge #3486 to fix this issue?

@spaghetticode
Copy link
Member

@cesartalves I think there may still be merit in trying to address this issue - the current behavior doesn't seem ideal as suggested by the commenters. Not sure how we should proceed though. It's probably worth evaluating other simpler solutions (besides adding the merged state) for a new sensible default that doesn't destroy meaningful orders.

@cesartalves cesartalves added the confirmed Validated report label Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_core Changes to the solidus_core gem confirmed Validated report type:bug Error, flaw or fault
Projects
None yet
Development

No branches or pull requests

8 participants