This topic contains 2 reply and 2 voices, and was last updated by Nayem 5 years, 2 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
April 22, 2015 at 7:10 pm 42049
Nayem Hello, Is there a way to make the CUSTOMER EMAILS (for and after a sale) go to the SELLER and not me (the admin of the site)?
April 23, 2015 at 12:26 am 42074
Tracy Tracy

and SELLERS are NOT getting an email with the variation selection for orders either… So they have no idea what to ship to the sellers…

I see others have had this issue… but it still has not been resolved???

April 23, 2015 at 2:58 pm 42124
Nayem Nayem

Hello Tracy,

If you want to send the mail only to the seller then please open Dokan/includes/theme-function.php. In this file you will get this function-

function dokan_wc_email_recipient_add_seller( $admin_email, $order ) {
    $emails = array( $admin_email );

    $seller_id = dokan_get_seller_id_by_order( $order->id );

    if ( $seller_id ) {
        $seller_email = get_user_by( 'id', $seller_id )->user_email;

        if ( $admin_email != $seller_email ) {
            array_push( $emails, $seller_email );
        }
    }

    return $emails;
}

You have to replace this with the below code-

function dokan_wc_email_recipient_add_seller( $admin_email, $order ) {
    $emails = array( $admin_email );

    $seller_id = dokan_get_seller_id_by_order( $order->id );

    if ( $seller_id ) {
        $seller_email = get_user_by( 'id', $seller_id )->user_email;

        if ( $admin_email != $seller_email ) {
            // array_push( $emails, $seller_email );
            $emails = array( $seller_email );
        }
    }

    return $emails;
}

In the second post you have mentioned about the variation data in the invoice. You are right. We will fix it in our next update.

Thanks.

Viewing 2 Posts - 1 through 2 (of 2 total)