Simple, but no longer appears well made
-
Does what it says. Instead of just notifying shop manager, the customer also gets notified when cancelled/failed order. Recommended!
I’m sorry, but can no longer recommend this, but have to warn against it. As others have discovered, it may cause a major information leak, when used for bulk cancelling.
I have made a fix, which any easily can implement, replace line 30 with:
// \error_log ( 'Pre: ' . $wc_emails['WC_Email_Cancelled_Order']->recipient );
$wc_emails['WC_Email_Cancelled_Order']->recipient = \explode( ',', $wc_emails['WC_Email_Cancelled_Order']->recipient )[0] . ',' . $email_cliente;
// \error_log ( 'Post: ' . $wc_emails['WC_Email_Cancelled_Order']->recipient );
- The topic ‘Simple, but no longer appears well made’ is closed to new replies.