GetIsQtySalable
Magento\InventorySales\Model\GetIsQtySalable
What it does
This class determines whether a product with a given SKU can be sold from a specific stock.
It checks if the product is assigned to the stock, validates the product type supports inventory management, and verifies that salable quantity is greater than zero.
Developers use this when they need to validate product availability before allowing customers to add items to cart or complete checkout.
Public Methods
- execute()