Log in
Interface

GetIsQtySalableInterface

Magento\InventorySalesApi\Model\GetIsQtySalableInterface

What it does

This interface defines a service contract for checking if a product's quantity in stock is available for sale.

Developers use this to verify product salability before allowing purchases, taking into account stock status, reservations, and inventory thresholds.

It's commonly used in cart validation, checkout processes, and product availability checks.

Public Methods

  • execute()