Trigger new account notification
-
Hi,
i have installed your plugin wich works fine.
i only one problem, when shop-manager create order for NEW customer… the NEW customer doesn’t receive the new account notification to be able to connect to his account.
I have made some change to the file shop_as_client.php to trigger the email notification… it does fine, except that the notification doesn’t display the password generated by system.
Can you please help in this matter?This is the code I have added:
wp_update_user(
array( ‘ID’ => $user_id,
‘first_name’ => $user_first_name,
‘last_name’ => $user_last_name,
‘display_name’ => trim( $user_first_name.’ ‘.$user_last_name ),
‘role’ => ‘customer’,
)
);
//ADDED AA SEND EMAIL NEW CUSTOMER START
$wc = new WC_Emails();
$wc->customer_new_account($user_id);
//ADDED AA SEND EMAIL NEW CUSTOMER END
} else {
$user_id = 0;By advance, thank you very much
- The topic ‘Trigger new account notification’ is closed to new replies.