Plugin sends double emails (_gtwp_g2w_inc.php — Lines:1381-1385)
March 15, 2018 5:38 pmFile: _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).
8 Comments
8 Replies
10-day bump.
Thoughts?
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.
1-month follow-up bump. We go live next Wednesday and would like your thoughts on this. Thanks!
Coming up on 2 months since I’ve asked for help w/ this – any response would be welcome 🙂
We are having this same issue in a production environment. We’d appreciate a response as well. This seems like a bug or possibly a way to support older versions of WooCommerce that breaks new ones.
@aaronff it seems like it may be a while to hear back from them. A temporary fix is to comment out the lines mentioned in OP above. But – you’re right – this is probably a bug.
I hate to be a pest, because I love this plugin so much – it definitely helps alleviate a lot of extra work with integrating G2W, but even a “we’re working on it” comment would suffice honestly…
It’s been 77 days… http://howmanydayssince.net/03/15/2018
Maybe it has something to do with Idus Martiae?
Thank you for fixing this via this thread. http://gotowp.supportico.us/threads/double-emails-sent-70-days-no-answer-on-previous-support-question/