Official OpenMage LTS codebase | Migrate easily from Magento Community Edition in minutes! Download the source code for free or contribute to OpenMage LTS | Security vulnerability patches, bug fixes, performance improvements and more.
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)
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
[ ] All commits are accompanied by meaningful commit messages
[x] All automated tests passed successfully (all builds are green)
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)
Manual testing scenarios (*)
Example with sample data:
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 (*)