From 6c5f04a065519eb98b1c409f093bb9c9458d641e Mon Sep 17 00:00:00 2001 From: Tony Date: Sun, 22 Sep 2024 22:55:30 +0200 Subject: [PATCH] add stock status to children products (#4100) Co-authored-by: Sven Reichel --- app/code/core/Mage/ConfigurableSwatches/Helper/Mediafallback.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/code/core/Mage/ConfigurableSwatches/Helper/Mediafallback.php b/app/code/core/Mage/ConfigurableSwatches/Helper/Mediafallback.php index a0c295a2643..8c7e96f0544 100644 --- a/app/code/core/Mage/ConfigurableSwatches/Helper/Mediafallback.php +++ b/app/code/core/Mage/ConfigurableSwatches/Helper/Mediafallback.php @@ -425,6 +425,7 @@ public function attachChildrenProducts(array $products, $storeId) ); $collection->setFlag('product_children', true) + ->setFlag('require_stock_items', true) ->addStoreFilter($storeId) ->addAttributeToSelect($this->_getChildrenProductsAttributes()); $collection->addProductSetFilter($productIds);