Forum Replies Created
-
AuthorPosts
-
luanneParticipantThis reply has been marked as private.luanneParticipantThis reply has been marked as private.luanneParticipant
That did the trick – thank you!
luanneParticipantThis reply has been marked as private.luanneParticipantThis reply has been marked as private.luanneParticipantThis reply has been marked as private.luanneParticipantThis reply has been marked as private.luanneParticipantThis reply has been marked as private.luanneParticipantThis reply has been marked as private.luanneParticipantThis reply has been marked as private.luanneParticipantThis reply has been marked as private.luanneParticipantThis reply has been marked as private.luanneParticipantThis reply has been marked as private.luanneParticipantHello again, I found the issue.
I had previously had the problem of having duplicate emails being sent to the customer – one for the order, and one for the sub-order. You gave me this code to add to my theme functions php, but now the customer doesn’t get any of these emails, but the admin. and vendor’s do. When I remove this code, the customer will get the (now single) emails, but the admin. and vendor won’t receive any. The new order email setting in Woocommerce is set as default: admin. email.add_filter( ‘woocommerce_email_recipient_customer_refunded_order’, ‘disable_email_for_sub_order’, 10,3 );
add_filter( ‘woocommerce_email_recipient_customer_completed_order’, ‘disable_email_for_sub_order’, 10,3 );
add_filter( ‘woocommerce_email_recipient_customer_on_hold_order’, ‘disable_email_for_sub_order’, 10,3 );add_filter( ‘woocommerce_email_recipient_customer_processing_order’, ‘disable_email_for_sub_order’, 10,3 );
function disable_email_for_sub_order( $recipient, $order, $object ){
if( wp_get_post_parent_id( $order->get_id() ) ){
return $recipient;
} else {
return;
}
}luanneParticipantThe Woocommerce email settings look like they are right. At least I can manually send the customer a new order email from the ‘orders’ page until I can fix the problem sometime down the road.
Thanks! -
AuthorPosts