1

I want to stop the order confirmation email on a specific payment method.

I can't achieve exactly which module perform email sending task and in which controller where I apply condition(email, sale, checkout).

Please help me as soon as possible.

2

Take a look at the class Magento\Quote\Observer\SubmitObserver, used in Magento/Quote/etc/frontend/events.xml.

You can override this class to add your test and avoid email sending.

Otherwise you can call the order function $order->setCanSendNewEmailFlag(false) with false as parameter when placing order.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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