Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple product is available on the swatches even when Quantity is 0 and is out of stock #6212

Closed
jibrandlr opened this issue Aug 17, 2016 · 5 comments
Assignees
Labels
bug report Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@jibrandlr
Copy link

jibrandlr commented Aug 17, 2016

Preconditions

  1. Magento 2.1.0, PHP 7.0.8, Ubuntu 16.04

Steps to reproduce

  1. Create a configurable product which includes 2 or more simple product configurations (Ex. size S and M)
  2. Set the following values for one of the simple products (size M):
  • Enable product: Yes
  • Quantity: 0
  • Stock status: Out of stock
  1. Go to product page on front end.

Expected result

  1. The option (size M) should not appear in the swatches since quantity is 0 and is out of stock.

Actual result

  1. That product option (size M) is available on the swatches even when Quantity is 0 and is out of stock.
    (If user tries to add it to cart, magento displays the warning: This item is out of stock)

A simple fix is to manually change the status of that simple product from "Enabled" to "Disabled". However this should be done automatically. If there is only 1 unit left of that product and a user buys it, another user should not be able to see it as an available option.

When the last unit available has been sold, the status should be changed automatically to "Disabled" so it's not shown on product page.

@pboisvert
Copy link

Can you confirm that you haven't set Display Out of Stock products to yes (under Stores > Configuration > Catalog > Inventory)?

@jibrandlr
Copy link
Author

@pboisvert Just confirmed that "Display Out of Stock Products" is set to No

@victor-v-rad victor-v-rad self-assigned this Aug 26, 2016
@victor-v-rad
Copy link
Contributor

victor-v-rad commented Aug 26, 2016

Seems in #5948 described the same issue. Internal ticket MAGETWO-56480 to fix it.

@victor-v-rad victor-v-rad added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development 2.1.x and removed develop labels Aug 26, 2016
@LucScu
Copy link

LucScu commented Nov 2, 2016

This bug is also present in catalog pages:
when you filter by super attribute like size, magento lists also configurable products that have its simple products for searched size out of stock.

@magento-engcom-team magento-engcom-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed labels Sep 11, 2017
@magento-engcom-team magento-engcom-team added the Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed label Oct 6, 2017
@magento-engcom-team
Copy link
Contributor

@lgarridoj, thank you for your report.
We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue.
We tested the issue on 2.3.0-dev, 2.2.0, 2.1.9

@magento-engcom-team magento-engcom-team added the Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch label Oct 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

6 participants