cancel
Showing results for 
Search instead for 
Did you mean: 

Bundle/Grouped Product Stock Status

Bundle/Grouped Product Stock Status

Hi Magento,

We are looking at Grouped and Bundled products. If any of the child products are out of stock, the Grouped or Bundled should also mark out of stock. Currently it does not.

We don't want customers to be able to purchase Grouped or Bundles products unless all the child products are available. I don't understand why you would bundle products to them let them be sold individually.

2 REPLIES 2

Re: Bundle/Grouped Product Stock Status

Hi @christopher_oliver,

 

Greetings of the day!

 

Yes, currently If any of the child products are out of stock, the Grouped or Bundled should not mark out of stock. It's Magento's behaviour. If you want an update, then you need to override this default behaviour.
for example :

 $productStock = $productStockRegistry->getStockItem($entity->getId());
    $productStock = $productStockRepository->get($entity->getId());
    $productStock->setIsInStock(true);
    $productStock->setQty(10);
    $productStock->save();

you can update in this way. 

 

Hope this will help you to solve your issue.

If not, please feel free to reach out to us.

 

Worked?

Click KUDOS and accept as a solution.

Thank you!

Re: Bundle/Grouped Product Stock Status

Thank you for your reply. Where and how would this be used? 

Thank you.