Product having zero salable quantity results in stock in product list page and out of stock in view page.
- Dominant language
- PHP
- Stars
- 357
- Forks
- 262
- PR merge metrics
- No merged PRs in 30d
Description
Preconditions (*)
1. Magento 2.3.5-p1(MSI enabled)
Steps to reproduce (*)
1. Create a simple product with qty = 1
2. Place an order that will cause the product to have 0 salable quantity
3. The Salable Quantity drops to zero, while the Quantity remains at 1.
Expected result (*)
1. The product, having Salable Quantity 0, should display out of stock label in both product list page and product view page.
Actual result (*)
1. The product remains in stock in product list page and out of stock in view page.
P.S. If you open the product page then it does show correctly as out of stock product.
admin panel stock

product list page

product view page

Contributor guide
Research direction
Reproduce the issue on Magento 2.3.5-p1 with MSI enabled by creating a product with quantity 1 and placing an order that reduces salable quantity to zero. Compare stock labels on the product list and product view pages; done means both pages consistently show the product as out of stock.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100