Log in
Model

ReorderOutput

Magento\Sales\Model\Reorder\Data\ReorderOutput

What it does

This is a Data Transfer Object (DTO) that represents the result of a reorder operation in Magento 2.

It encapsulates both the shopping cart created from the reorder and any errors that occurred during the process.

Developers use this class to handle reorder responses, allowing them to access the newly created quote and check for any product or validation errors that prevented items from being added.

Public Methods

  • getCart()
  • getErrors()