Log in
Model

AddProductsToCartOutput

Magento\Quote\Model\Cart\Data\AddProductsToCartOutput

What it does

This is a Data Transfer Object (DTO) that represents the result of adding products to a shopping cart.

It encapsulates both the updated cart and any errors that occurred during the add-to-cart operation, allowing developers to handle both successful updates and failures in a single response when using the AddProductsToCart service.

Public Methods

  • getCart()
  • getErrors()