magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.55k stars 9.32k forks source link

Product goes out of stock when allow backorder is set to true #33321

Closed web4exposure-org closed 3 years ago

web4exposure-org commented 3 years ago

Preconditions (*)

  1. 2.4.2
  2. Product is in stock
  3. manage stock is enabled
  4. qty of product is 0

Steps to reproduce (*)

  1. Product is sold
  2. (?) reindex

Expected result (*)

  1. Product is still in stock

Actual result (*)

  1. Product is updated to out of stock

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

m2-assistant[bot] commented 3 years ago

Hi @web4exposure-org. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


: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, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

web4exposure-org commented 3 years ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 3 years ago

Hi @web4exposure-org. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 3 years ago

Hi @web4exposure-org, here is your Magento Instance: https://05d5192481ed28f77251fb91f4ce6114-2-4-develop.instances.magento-community.engineering Admin access: https://05d5192481ed28f77251fb91f4ce6114-2-4-develop.instances.magento-community.engineering/admin_40e6 Login: 9275fdbd Password: 9d7a2bb8399b

web4exposure-org commented 3 years ago

@magento give me 2.4-2 instance

magento-deployment-service[bot] commented 3 years ago

Hi @web4exposure-org. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 3 years ago

Hi @web4exposure-org, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

m2-assistant[bot] commented 3 years ago

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:

web4exposure-org commented 3 years ago

@engcom-November I am looking into this, as it is not certain I can reproduce the bug on a clean install. I hope this is not a problem. The pre-conditions are unclear as of now.

engcom-November commented 3 years ago

I verified the issue on Magento 2.4-develop version and the issue is not reproducible with above preconditions. Steps performed: 1.Admin Global Configuration - Manage Stock is enabled (Stores - Configuration - Catalog - Inventory - Product Stock Option - Manage Stock - Set to Yes)

  1. Enable Back orders - Allow Quantity below 0 and Notify Customers (Stores - Configuration - Catalog - Inventory - Product Stock Option - Back Orders)
  2. Catalog - Products - Edit Product - Advanced Inventory - Verify the configuration of Manage Stock and Back orders, Stock Status is - In Stock
  3. Set Quantity to 0 and save
  4. Navigate to Magento Front End and Add the product to cart - Checkout - Place Order User is able to place the order and the product is still displayed as In-Stock only. Reindex and tried to place the order multiple times but the issue is not reproducible. User is able to place the order multiple times and quantity is updated in Admin as expected. 33321-1 33321-2

Quantity and Stock Status is displayed as expected in Admin after placing order multiple times:

33321-3

@web4exposure-org, can you please re-verify and confirm if the issue is still reproducible. If yes, please provide missing steps if any. Thank you.

engcom-November commented 3 years ago

@web4exposure-org, We are closing this issue as there has been no latest update on the same. Thank you.