Dont send to customer option
-
Hi, Im trying to make emails that DONT get sent to the customer.
Ive hacked a little code, not sure if this is the way you would solve it though.
Made a copy of variable “send_to_customer” other places in the code as well.$send_to_customer = ('on' == $this->send_customer); $dontsend_to_customer = ('on' == $this->dontsend_customer); if ( $order_id ) { $this->object = wc_get_order( $order_id ); if ( $send_to_customer && !$dontsend_to_customer ) { $this->bcc = $this->recipient; $this->recipient = $this->object->get_billing_email(); } else if (!$dontsend_to_customer) { $recipients = explode( ',', $this->recipient ); array_push( $recipients, $this->object->get_billing_email() ); $this->recipient = implode( ',', $recipients ); }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Dont send to customer option’ is closed to new replies.