Plugin sends double emails (_gtwp_g2w_inc.php — Lines:1381-1385)

March 15, 2018 5:38 pm

File: _gtwp_g2w_inc.php
Lines:1381-1385
Code:
$mailer = WC()->mailer();
$mailer->customer_invoice($order);
$email = $mailer->emails[‘WC_Email_New_Order’];
$email->trigger($order_id);

For some reason this is sending two emails. I had to comment these lines out in order for WooCommerce’s emails to be predictable (and not doubled up).

Published by 8 Comments

8 Replies

Leave a Reply

Your email address will not be published.