Send INVOICE in email after status COMPLETED
-
Hello!
How I can send via email (in link or attached), the pdf generated in an order (with order id), When status of the order id COMPLETED?
I need a php code something like this.. buy I cant advance more.if( $order->has_status( ‘completed’ ) ) {
$order = wc_get_order( $order_id );
$customemail= “custom@gmail.com”;/*PHP CODE OF THE PLUGIN TO SEND THE PDF knowing the order id*/
$mail = @mail($to, $subject, $message, $headers, $returnpath);
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Send INVOICE in email after status COMPLETED’ is closed to new replies.