Log in
Model

IsAnySourceItemInStockCondition

Magento\InventorySales\Model\IsProductSalableCondition\IsAnySourceItemInStockCondition

What it does

This class determines if a product is salable by checking if any of its source items are in stock for a given stock ID.

Developers use this as a condition checker in the multi-source inventory system to validate product availability before displaying it as purchasable on the storefront.

Public Methods

  • execute()