Skip to content

Commit

Permalink
Remove invoice send without config check (#2814)
Browse files Browse the repository at this point in the history
Remove sending of the invoice email without former check if invoice emails are enabled.

Co-authored-by: Can Demiralp <[email protected]>
  • Loading branch information
aschrammel and candemiralp authored Dec 24, 2024
1 parent 10722e4 commit 9270f00
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Helper/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,6 @@ public function createInvoiceFromWebhook(Order $order, Notification $notificatio
);
$transactionSave->save();

$this->sendInvoiceMail($invoice);

//Send Invoice mail to customer
$invoiceAutoMail = (bool)$this->scopeConfig->isSetFlag(
InvoiceIdentity::XML_PATH_EMAIL_ENABLED,
Expand Down

0 comments on commit 9270f00

Please sign in to comment.