Cara Menambah notifikasi email pembatalan pesanan ke customer woocommerce
Notifikasi email untuk membatalkan pesanan ke customer, hanya untuk notif ke admin saja. Jika ingin notifikasi pembatalan pesanan ke email customer juga [plugin woocommerce.], maka berikut caranya:
silahkan edit file function.php di folder theme aktif anda. dan masukkan code berikut :
/*
* Add customer email to Cancelled Order recipient list
*/
function wc_cancelled_order_add_customer_email( $recipient, $order ){
return $recipient . ',' . $order->billing_email;
}
add_filter( 'woocommerce_email_recipient_cancelled_order', 'wc_cancelled_order_add_customer_email', 10, 2 );
Leave a Reply
Want to join the discussion?Feel free to contribute!