Skip to content

Commit 6c5f04a

Browse files
add stock status to children products (OpenMage#4100)
Co-authored-by: Sven Reichel <[email protected]>
1 parent 75cd467 commit 6c5f04a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/core/Mage/ConfigurableSwatches/Helper/Mediafallback.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ public function attachChildrenProducts(array $products, $storeId)
425425
);
426426

427427
$collection->setFlag('product_children', true)
428+
->setFlag('require_stock_items', true)
428429
->addStoreFilter($storeId)
429430
->addAttributeToSelect($this->_getChildrenProductsAttributes());
430431
$collection->addProductSetFilter($productIds);

0 commit comments

Comments
 (0)