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 2 Comments

2 Replies

  • 1-week follow-up bump.

    Any info on this? I noticed the code below the mentioned code is already commented out (for completed orders, not invoices) so I’m wondering if this used to send double emails for completed emails, too? I just need to confirm this is okay to comment out / isn’t needed for something bigger that I’m not seeing.

Leave a Reply

Your email address will not be published.