Log in
Model

QuoteValidator

Magento\Quote\Model\QuoteValidator

What it does

The QuoteValidator class ensures shopping cart quotes are valid before checkout or order submission.

Developers use this class to validate that quote amounts don't exceed system limits and that all quote data meets business rules before converting a quote to an order.

It's automatically invoked during the checkout process to prevent invalid orders from being placed.

Public Methods

  • validateQuoteAmount()
  • validateBeforeSubmit()