From f27bd7e49cc94e55488dfe44758ffa80081c5816 Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 17 Jul 2024 17:10:06 +0200 Subject: [PATCH] add stock status to children products --- 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 db49ed16933..9ab5f2fa62f 100644 --- a/app/code/core/Mage/ConfigurableSwatches/Helper/Mediafallback.php +++ b/app/code/core/Mage/ConfigurableSwatches/Helper/Mediafallback.php @@ -432,6 +432,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);