Log in
Model

InsufficientStockError

Magento\Quote\Model\Cart\Data\InsufficientStockError

What it does

This class represents a specific type of error that occurs when a cart item has insufficient stock quantity available.

Developers use this class to handle and display stock-related errors during cart operations, providing both error details and the actual available quantity to inform customers why their desired quantity cannot be fulfilled.

Public Methods

  • getQuantity()