Log in
Model

UnavailableProductsProvider

Magento\Sales\Model\Order\Reorder\UnavailableProductsProvider

What it does

This class identifies products from an order that are no longer available for reordering.

Developers use this when implementing reorder functionality to determine which products cannot be added back to the cart, such as disabled, out-of-stock, or deleted products.

It returns an array of SKUs for unavailable items.

Public Methods

  • getForOrder()