Send Email For 'Payment Pending' Status
-
I’ve created a ‘new’ gateway in woocommerce called “submit order” which basically does what it says, and submits the order without a payment being required. (similar to COD, actually its based off of COD), and I’ve made it submit as a “pending payment” status when it is submitted.
What i’m needing to do is have an email sent (the same email that is sent when the order is in a “processing” status) once the order is submitted.
I’ve tried adding code in the following files (see below) to get this to work however it sends double emails if the status is changed in the backend and its not sending emails once the order is initially submitted.
/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php
Line: 45/wp-content/plugins/woocommerce/includes/class-wc-emails.php
Line: 126/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-processing-order.php
and I’ve duplicated the ‘customer-processing-order.php’ and renamed it ‘customer-pending-order.php’ in /woocommerce/templates/email/ and added references to that file in the other files.
Any help is GREATLY appreciated.
Thanks,
Brad
- The topic ‘Send Email For 'Payment Pending' Status’ is closed to new replies.