Log in
Model

ChangeParentStockStatus

Magento\GroupedProduct\Model\Inventory\ChangeParentStockStatus

What it does

This class automatically updates the stock status of grouped products when their child products' stock levels change.

Developers use this to ensure that when all children of a grouped product go out of stock, the parent grouped product is automatically marked as out of stock, and vice versa.

It's typically invoked after inventory changes to maintain accurate stock status across product relationships.

Public Methods

  • execute()