Solidus: Order Merging Deleting Orders in Backend Unexpectedly

Created on 16 Sep 2016  路  4Comments  路  Source: solidusio/solidus

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.

Hacktoberfest Waiting on Author Response

Most helpful comment

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.

All 4 comments

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?

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.

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.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spaghetticode picture spaghetticode  路  3Comments

jarednorman picture jarednorman  路  5Comments

aitbw picture aitbw  路  4Comments

jhawthorn picture jhawthorn  路  4Comments

ericsaupe picture ericsaupe  路  3Comments