#5661 - My Orders does not update when the sale has been canceled
| Identifier | #5661 |
|---|---|
| Issue type | Trivial issue (does not break functionality) |
| Title | My Orders does not update when the sale has been canceled |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) |
| Handling member | PDStig |
| Version | 10.0.47 |
| Addon | shopping |
| Description | I have noticed that while testing the process, if I make an order and add it to the shopping cart... then later remove it from the cart (empty the cart and update) so that it shows there is nothing in my shopping cart, and then if I look at the record of 'My Orders' I see it still thinks all the items previously added and then removed are all there. They all remain in that record with the notation - awaiting payment. It seems that the 'My Orders" list should update and also remove any product removal also - but it appears not to. I had clicked on buy it which made it appear in the shopping cart - then I emptied the shopping cart. There was no actual payment processing in any of this. |
| Steps to reproduce | see comments in "explain the bug" |
| Additional information | I was using my desktop computer with the windows 10 operating system. The browser was Firefox (I do not remember the version) |
| Funded? | No |
| Commits |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
Orders keep getting created every time a change in the shopping cart is made (even emptying it).
This hotfix should take care of this; a new order is only created if one is not already in progress (unless the in-progress one is already tied to a transaction or not awaiting payment). Furthermore, when the shopping cart is emptied, the relevant order will either be deleted or cancelled depending on if any notes were attached to it.