-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magento 2.1 Swatches on catalog and product page do not disable when out of stock and more... #5558
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
Comments
Hi @PierAlex Thanks for reporting! As for "Second issue" we already have internal ticket #MAGETWO-47017 to fix this. As for other issues - I have created one more internal ticket #MAGETWO-58328 for fix. This issue will be closed after fixes. Have a good day! |
Fixed under MAGETWO-47017 ticket. |
Hello @rganin |
Hello @rganin , we are experiencing the issue described in #MAGETWO-58328 where out of stock swatch options are not disabled/struck through, is there any word on the progress of this issue? Version: 2.1.2 Community Thank you. -- EDIT: Update: Just upgraded to 2.1.4 and this issue is resolved. Thank you. |
Hi, it seems Magento 2.2.0 still having this issue of displaying text swatches when products out of stock, following by the notification message "You need to choose options for your item.". |
Confirm that under Magento 2.2.0 the bug is still present. |
Painful... So, I kind of already assuming that Magento dev not going to fix this issue, because when they trying to replicate this bug, they probably either not adding 2nd attribute, or testing the part which is not broken, or maybe because it not 100% broken. So, all we got left to do is appreciate the free open source software, and hope one day one of the smart developers will find the fix and commit it to the magento git project. |
Fixed for 2.2.0 with this https://github.com/mjankiewicz/MagentoConfigurableProduct |
Can confirm @LAccorinti's extension fixes the issue for version 2.2.2 |
Fresh 2.1 installation
More than one issue:
Steps to reproduce

Configure a product with swatch attributs e.g size and color
Set some quantity to 0, or leave it empty, for child products. (Is it correct that they are automatically saved as virtual product instead simple ones?)
First Issue
On Catalog product page
Expected result
Clicking on a color swatch, the size swatch(es) related to product(s) out of stock must be disabled (if it helps, before 2.10 it runs).
Same expected result when selecting the size swatch(es) (must disable color swatches for out of stock products related to that size)
Actual result

All swatches are selectable also if products are out of stock.
in the example above, S and L sizes must be disabled..
Second issue:
On catalog product page:
Steps to reproduce
Select Color and size swatches and add the product to the cart.
Expected result
The product is added to the cart from catalog page.
Actual result

Clicking on add to cart button opens the product page and a message show that you have to choose options as color and size in the example also if you already selected in the catalog page.
.
Third issue:

As the first issue described for catalog page, it happens also in product page: Clicking on color does not disable size for product(s) out of stock. Same for size versus color.
The text was updated successfully, but these errors were encountered: