Log in
Model

UpdateDefaultStock

Magento\InventoryCatalog\Model\UpdateDefaultStock

What it does

This class updates the default stock status and quantity for products in Magento's legacy stock system based on Multi-Source Inventory (MSI) data.

Developers use this when synchronizing inventory between MSI and the legacy cataloginventory tables, particularly after inventory changes to ensure stock status reflects actual salability across both systems.

Public Methods

  • execute()