Log in
Model

ValidateCoupon

Magento\Sales\Model\Order\Create\ValidateCoupon

What it does

This class validates and provides user feedback when applying or removing coupon codes during order creation in the admin panel.

It checks if the coupon can be applied to quote items (ensuring discount isn't disabled), verifies the coupon code matches the quote's applied coupon, and displays appropriate success or error messages to admin users.

Public Methods

  • execute()