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

Swatch not updating to show out of stock and are able to click [2.2.1] #12474

Closed
dawhoo opened this issue Nov 28, 2017 · 8 comments
Closed

Swatch not updating to show out of stock and are able to click [2.2.1] #12474

dawhoo opened this issue Nov 28, 2017 · 8 comments
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

@dawhoo
Copy link

dawhoo commented Nov 28, 2017

Preconditions

  1. Magento 2.2.1 Production
  2. PHP 7.0.23
  3. SQL Server version: 5.6.36-82.0 - Percona Server (GPL), Release 82.0, Revision 58e846a

Steps to reproduce

  1. Configurable Product with 2 sub attributes (Color(Red,Green), Size(S,M,L)
  2. Set Inventory as 1 for each child
  3. Add Red,M product to cart and checkout
  4. Process the order so the item inventory is updated to "0"
  5. Verify item inventory is 0 and make sure backorders are not allowed.

Expected result

  1. The Red,M swatch should have the red slash.
  2. The Red,M swatch should not be able to be selected

Actual result

  1. The Red,M swatch does not have the red slash.
  2. The Red,M swatch is able to be selected.
  3. When you clock "Add to Cart" error displays on product page "You need to choose options for your item."

Magento 2.1.9 updated to 2.2.1 - The problem did not occur in 2.1.9, but it is present in 2.2.1

Products that were out of stock in 2.1.9 had the red slash and your couldn't select that option. After the upgrade, all existing combinations are able to be selected despite being out of stock.

In cataloginventory_stock_status, the items are showing stock_status 0 for items sold in 2.1.9 and 2.2.1
In cataloginventory_stock_status_idx the items are showing stock_status 1 for items sold after upgrading to 2.2.1, and stock status as 0 for items sold in 2.1.9

@magento-engcom-team magento-engcom-team added Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed 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 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 and removed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed labels Nov 28, 2017
@magento-engcom-team
Copy link
Contributor

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

@sennin32
Copy link

sennin32 commented Dec 4, 2017

Not only Swatch.
I'm facing the same issue for simple item and configurable items.
Worst of all, some configurable items is not show even the stock quantity is positive, in stock, and enabled.

@santhoshp
Copy link
Member

santhoshp commented Jan 7, 2018

I am working on it. #mm18in

@magento-engcom-team
Copy link
Contributor

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

@chedaroo
Copy link
Contributor

Is this not a dupe of #12317?

@mysil2
Copy link

mysil2 commented Jan 29, 2018

@chedaroo Seems to me.

Fixed in 2.2.4-preview branch: #12936

From the latest comment a backport to 2.3 is planned.

@okorshenko
Copy link
Contributor

Hi @chedaroo @mysil2 thank you for linking the issue and PRs. 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
@okorshenko
Copy link
Contributor

Hi @mysil2 Thank you for your involvement to Magento Community. I just sent you an invitation to magento organization or the github. Please accept the invite and you will be able to close the issue when you find that they are already fixed.

@santhoshp santhoshp removed their assignment May 19, 2018
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

7 participants