Skip to content

Commit

Permalink
add stock status to children products (#4100)
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Reichel <[email protected]>
  • Loading branch information
empiricompany and sreichel authored Sep 22, 2024
1 parent 75cd467 commit 6c5f04a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6c5f04a

Please sign in to comment.