magento / magento/inventory

Product having zero salable quantity results in stock in product list page and out of stock in view page.

Open
#3,062 72 comments 0 reactions 0 assignees View on GitHub
Progress: ready for grooming QA Verified
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
![スクリーンショット 2020-05-22 12 18 16](https://user-images.githubusercontent.com/45053620/82627899-6f680600-9c26-11ea-99cf-0c3828d91e04.png)

product list page
![スクリーンショット 2020-05-22 12 11 27](https://user-images.githubusercontent.com/45053620/82627566-a0940680-9c25-11ea-85db-aa558ac7c5c1.png)
product view page

![スクリーンショット 2020-05-22 12 12 09](https://user-images.githubusercontent.com/45053620/82627570-a25dca00-9c25-11ea-9c68-9917d55268ca.png)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.