Log in
Model

ChangeParentStockStatus

Magento\Bundle\Model\Inventory\ChangeParentStockStatus

What it does

This class automatically updates the stock status of bundle products based on the stock status of their child products.

It ensures that a bundle product is marked as in-stock only if at least one child product is available in each required option, or if any child is available when all options are optional.

Developers use this when child product stock changes to keep parent bundle product availability accurate.

Public Methods

  • execute()