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

Configurable Products with Two or More Attributes Aren't Hiding Out of Stock Items #12317

Closed
lee586 opened this issue Nov 17, 2017 · 13 comments
Closed
Assignees
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed 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 Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@lee586
Copy link

lee586 commented Nov 17, 2017

For configurable products, out-of-stock child items are still showing up when configurable item has two or more configurable attributes. And yes, the "Display Out of Stock Products" is set to "NO" in the inventory configuration. If the configurable product only has one attribute, it hides the out of stock sub items. However, with 2 or more, it will show the out of stock options and if you add the out-of-stock item to your cart, you get the error message, "You need to choose options for your item."

Preconditions

  1. CentOS 7, PHP 7.11, mysql 5.7, Magento CE 2.2.1

Steps to reproduce

  1. Create a configurable product with at least two attributes like "Size" and "Color"
  2. Set one of the child products like "Large Red" to quantity zero and "out of stock."
  3. Clear cache, reindex, etc., and visit that product page. Select "Large" and you'll see that "Red" isn't crossed out. Now try and add "Large Red" to cart. You'll get the error message, "You need to choose options for your item."

Expected result

  1. "Large Red" product that is out of stock should be crossed out not even allowing customer to try and add it to cart.

Actual result

  1. Confiruable attribute isn't crossed out or hidden. Still shows up as normal. When selected and "Add to Cart" is pressed, you'll get the error message, "You need to choose options for your item."
@magento-engcom-team magento-engcom-team added Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed labels Nov 17, 2017
@magento-engcom-team
Copy link
Contributor

@lee586, thank you for your report.
We've created internal ticket(s) MAGETWO-84037 to track progress on the issue.

@magento-engcom-team magento-engcom-team added 2.2.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Nov 17, 2017
@lee586
Copy link
Author

lee586 commented Nov 20, 2017

As a workaround, I have to disable or delete each child product when it goes out of stock. That is the only way Magento will "X" out that product configuration.

@lee586
Copy link
Author

lee586 commented Dec 8, 2017

Any idea how soon a patch will be released to tackle this bug?

@wolfuma
Copy link

wolfuma commented Dec 21, 2017

Same here on 2.2.1, no 'X' on out of stock products.

@manojxhtml786
Copy link

#MM18IN I would like to work on this issues.

@magento-engcom-team
Copy link
Contributor

@manojxhtml786 thank you for joining. Please accept team invitation here and self-assign the issue.

@hitarthpattani
Copy link

#MM18IN

@magento-engcom-team
Copy link
Contributor

@hitarthpattani thank you for joining. Please accept team invitation here and self-assign the issue.

@hitarthpattani
Copy link

@lee586 I am working on this issue and I will try to resolve it ASAP. Please feel free to reach me if you have any further concern related to this issue.

@lee586
Copy link
Author

lee586 commented Jan 17, 2018

Thank you for working on this @hitarthpattani. This is a major issue for anyone having configurable products with 2 or more attributes trying to control inventory.

@mysil2
Copy link

mysil2 commented Jan 29, 2018

Fixed in 2.2.4-preview branch: #12936

From the latest comment a backport to 2.3 is planned.

@okorshenko
Copy link
Contributor

Hi @mysil2 for the linking to PR. Closing the issue

@okorshenko okorshenko added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Mar 15, 2018
@ywsw
Copy link

ywsw commented Jun 20, 2018

I have just upgraded to 2.2.4 hoping to see this fixed (as apparent from above) but it does not seem to be fixed. The configurable options which are out of stock still show as the others without any indication of them being disabled. I have tried reindexing and flushing the cache but it did not help.

@lee586 @hitarthpattani @magento-engcom-team Please advise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed 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 Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

8 participants