Sends “Pending Payment” Status Email to Customer [FIX]
-
Changes needed to “seamlesschex-echeck-payments/includes/seamlesschex_extra_functions.php”
The plugin should not be sending the customer an email using the template “WC_Email_New_Order” (line 316).
As per WooCoomerce Code Reference “An email sent to the admin when a new order is received/paid for.”
See: https://woocommerce.github.io/code-reference/classes/WC-Email-New-Order.html
If it is necessary to send a “pending payment” email, then this should be a custom email template.
Our Fix:
Commented out seamlesschex-echeck-payments/includes/seamlesschex_extra_functions.php Line 321 //$wc_email->settings['recipient'] .= "," . $customer_email ; // Add email recipients (coma separated)
Also:
The Function (Line 309) [function scx_pending_new_order_notification( $order_id )] should check to ensure that the order being placed is using the payment processor “SeemlessChex” and not sending emails on ALL orders regardless of payment processor chosen.
EX:
(IF) [$order->get_payment_method()] or [$order->get_payment_method_title()].
- The topic ‘Sends “Pending Payment” Status Email to Customer [FIX]’ is closed to new replies.