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 reorder.

Developers use this when implementing reorder functionality to detect which items cannot be added back to the cart, typically due to the product being disabled, out of stock, or no longer existing.

It returns an array of SKUs for unavailable products that need to be communicated to the customer.

Public Methods

  • getForOrder()