Web Analytics

Fill the form & Get Installation Support

Magento 2: Disable Order Confirmation Email Based On Configuration Settings

To do this customization we have two options.

In option one, we can use the event on order success and in the second option we can do it by using the plugin

Here I am sharing you insights that how can we disable it by using the plugin:

You have to create di.xml in your existing extension or create an extension which you can do by adding below code,

Then you have to create [Vendor Name]\[Module Name]\Plugin\Order\Email\OrderEmail.php file and add below code,

After that just clean the Magento cache and check by placing a demo order.
A confirmation email should work based on a configuration setting.

Fill the below form if you have any Magento programming need.





    Recent Articles

    Author Info

    Author Image

    Magento Developer

    Hire S. Gorjia

    Get a Free Quote





      /* second popup */

      Connect With Us