• Hello,

    I want to notify my vendors of a new order only whenever it has been paid for successfully, not before.

    I’m using a custom code I found online that only shows the vendor the orders with “processing” and “completed” status, so they won’t know until it has been paid for.

    add_filter( 'wcfm_allowed_order_status', function( $order_status ) {
    	if( isset( $order_status['wc-pending'] ) ) unset( $order_status['wc-pending'] );
    	return $order_status;
    }, 50 );
    add_filter( 'wcfmp_order_list_allowed_status', function( $allowed_status ) {
    	$allowed_status = "'completed','processing'";
    	return $allowed_status;
    });
    add_filter( 'wcfmmp_is_allow_order_status_filter', '__return_true' );

    So what I need is to disable the trigger of the email until the order status is processing, when that happens, then yes, send them all the emails regarding the new order, but not before that.

    I would really appreciate any help to get this done, please.

    Thanks!

  • The topic ‘New Store Order email notification only after payment’ is closed to new replies.