Previously, when at least one required bundle product was out of stock, in the result of the calculation, the bundle product tself was also marked as out of stock, due to this code: min($this->stockItem->getIsInStock(), ...array_column($optionGroups, 'is_in_stock'));
Environment
[x] PHP Version: 8.1
[x] Magento Version: 2.4.5p1
[x] Magento Enterprise: yes
[x] Tweakwise Export Version: 5.0.3
[x] Magento Deploy Mode: production&development
Steps to reproduce
Install Magento from master branch.
Set Magento setting "Show out of stock products" to "No"
Create bundle product with multiple child products, set them as required.
Set one of the required child product to out of stock, as well as bundle product itself.
Export bundle products with that required children's products where at least one product is out of stock
Actual result
Bundle product is exported
Expected result
List the expected results as a bullet list of expectations
Issue Brief
In this commits the the way how bundle product was calculated has been changed: https://github.com/EmicoEcommerce/Magento2TweakwiseExport/commit/ca075a7cb365542075d4f897c9623cc5fed471e6
Previously, when at least one required bundle product was out of stock, in the result of the calculation, the bundle product tself was also marked as out of stock, due to this code:
min($this->stockItem->getIsInStock(), ...array_column($optionGroups, 'is_in_stock'));
Environment
Steps to reproduce
master
branch.Actual result
Expected result
List the expected results as a bullet list of expectations