Skip to content

invoice

Auto Added by WPeMatico

Prevent invoice email notification after invoice creation in Magento 2

I have used below event to stop Invoice email notification that is triggered after the invoice creation. Vendor/Module/etc/events.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Event/etc/events.xsd”> <event name=”sales_order_invoice_save_after”> <observer name=”stop_invoice_email_sending” instance=”VendorModuleObserverStopInvoiceEmail” /> </event> </config> Vendor/Module/Observer/StopInvoiceEmail.php <?php namespace MindtreeBilldeskObserver; use MagentoFrameworkEventObserver; use MagentoFrameworkEventObserverInterface; use… Read More »Prevent invoice email notification after invoice creation in Magento 2