magento-lts
magento-lts copied to clipboard
In product list all swatches are always shown even if they are not available when "Display Out of Stock Products" is disabled
Description (*)
In the product list, all swatches are always shown even if they are not available. You can verify this on the PDP because only the available ones are displayed correctly.
Tested with both enabled and disabled stock inventory configuration "Display Out of Stock Products"
When "Display Out of Stock Products" is enabled shown correctly like this:
When "Display Out of Stock Products" is disabled all swatches are always shown even if they are not available. With this patch shown correctly like this:
The bug occurs when the " Display Out of Stock Products" configuration is disabled.
Related Pull Requests
Fixed Issues (if relevant)
https://github.com/OpenMage/magento-lts/issues/3527
Manual testing scenarios (*)
- Create configurable product with options as swatch such as color
- Set stock unavailable for one color option
Example with sample data:
- In product configurable Name: "Nolita cami" SKU "wbk000c" set all children products with color pink unavailable.
In the product list, all colors are always shown even if they are not available. You can verify this on the PDP because only the available ones are displayed correctly.
Questions or comments
Contribution checklist (*)
- [x] Pull request has a meaningful description of its purpose
- [x] All commits are accompanied by meaningful commit messages
- [x] All automated tests passed successfully (all builds are green)
- [x] Add yourself to contributors list
Sorry @fballiano you can delete this https://github.com/OpenMage/magento-lts/pull/4099 please?
@empiricompany as of today I'm no longer part of this project
@empiricompany as of today I'm no longer part of this project
What?? This is unacceptable, this project would have died without you! What did I miss?
Smart change. :+1:
What is this flag for? See https://magento.stackexchange.com/questions/106455/get-product-stock-quantity-in-magento/209510#209510.
@ADDISON74 please test for https://github.com/OpenMage/magento-lts/issues/1694, too.
@sreichel - I will.
Please check this one https://github.com/OpenMage/magento-lts/issues/3527. It could be related too.