Log in
Model

CheckItemsQuantity

Magento\InventorySales\Model\CheckItemsQuantity

What it does

This class validates whether requested quantities of products are available for sale in a specific stock.

Developers use it to check inventory availability before processing orders or adding items to cart, ensuring customers cannot purchase out-of-stock items.

It throws an exception if any item is not salable for the requested quantity.

Public Methods

  • execute()