Admin Reorder Error When Product Is Out of Stock in Magento 2.4.7
Preconditions and environment
- Magento v2.4.7
- No MSI
Steps to reproduce
- Place an order for an item with a stock quantity of 1
- Go to the admin panel and attempt to reorder.
Expected result
Works fine with Bank Transfer Payment
Actual result
Does not work as expected with other payment gateways
Returns 'This product is out of stock,' and all order details are missing — not just the product, but also the customer information.
Additional information
No response
Release note
No response
Triage and priority
- [x] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- [ ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- [ ] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Hi @digitupgr. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.
- For more details, review the Magento Contributor Assistant documentation.
- Add a comment to assign the issue:
@magento I am working on this - To learn more about issue processing workflow, refer to the Code Contributions.
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
- [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
- [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
- [ ] 3. Add
Area: XXXXXlabel to the ticket, indicating the functional areas it may be related to. - [ ] 4. Verify that the issue is reproducible on
2.4-developbranchDetails
- If the issue is reproducible on2.4-developbranch, please, add the labelReproduced on 2.4.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here! - [ ] 5. Add label
Issue: Confirmedonce verification is complete. - [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Hello @digitupgr ,
Thank you for your report and collaboration.
We attempted to reproduce the reported issue in our local 2.4 development environment, following the steps outlined below:
Steps to Reproduce:
- Place an order for an item with a stock quantity of 1.
- Navigate to the admin panel and attempt to reorder the item.
However, we were unable to replicate the issue on our end. Please refer to the attached screenshot for reference.
Could you kindly review and let us know if there are any additional steps or specific conditions we might be missing?
As we are currently unable to reproduce the issue, we are marking this ticket as "Needs Update" pending further input.
Thank you once again!
Could you please specify which payment gateway you are using? Bank Transfer appears to be working correctly. Kindly try with a different payment method, such as Stripe.
Also, please make sure that MSI (Multi-Source Inventory) is disabled.
Note: In your screenshot, if the product is out of stock, a warning message should appear—similar to the one shown in our first image. However, in your example, no such message is displayed. Could you confirm whether the product was already out of stock before attempting to reorder?
Hello @digitupgr ,
Thank you for your report and collaboration,
We attempted to reproduce the issue in the latest 2.4-develop instance by following the provided steps and preconditions. We are able to reproduce the issue. Please refer to the attached screenshot for details.
Steps to Reproduce:
- Place an order for an item with a stock quantity of 1.
- Navigate to the admin panel and attempt to reorder the item.
Note: In 2.4 develop all the payment methods getting this error.
Hence marking this issue as "Issue:Confirmed"
Thank You!
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-14849 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-November. Thank you for verifying the issue.
Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
@engcom-November Hi! I think this comment could be related to this issue to, if I'm wrong please provide some information to explain that this is a valid expected result (maybe another m2 version or smth else)
Hello @KrasnoshchokBohdan,
Yes, provided that the comment includes screenshots of both the actual and expected results when clicking 'Reorder' on an ordered product. Ideally, all order details should be displayed. However, in this case, the product is not shown — an error message and order details appears.
Sorry for bad explanation from my side, how it works in my opinion When we click reorder
- Creates a new quote object
- Attempts to add each product from the original order to this quote
- For each product, it checks inventory availability
- Products with 0 quantity are skipped (they can't be added to the cart)
- If all products are skipped due to 0 quantity, the quote remains empty
- An order created from an empty quote has no items to display
The original order will only be canceled after submitting the new (empty) order To successfully reorder, you must either:
- Cancel the original order first, then reorder it
- Temporarily add inventory quantity to the products, perform the reorder, then change the quantity back
Hello Team,
The issue occurs only when backorders are disabled. If backorders are enabled for the products, everything works fine.
Hello Team,
Do you have any update on the issue? It still persists, and the admin is unable to reorder when a product is out of stock and backorders are disabled.