0

I find myself unable to place orders.

I wish to debug this.

Which controller is invoked/used when the place order button is clicked? I would like to put a break point and start from there thanks.

1
  • M2 checkout uses web API instead of controllers. Thus, you need to debug apis Dec 21, 2017 at 12:38

2 Answers 2

1

First controller on place order is

Magento\Checkout\Controller\Onepage\SaveOrder.php firstly it performs validation, if validation passed then It goes to

        $this->getOnepage()->saveOrder();
1
  • 1
    Magento\Checkout\Controller\Onepage\SaveOrder::execute is not called when Place Order is clicked. One can put a break point and see for himself. Mar 4, 2018 at 16:39
0

I found a starting point in Quote.

Magento\Quote\Model\QuoteManagement::placeOrder

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.