Okay
  Public Ticket #2687743
Conversations & Notifications
Closed

Comments

  •  5
    Amelia started the conversation

    We would like our sales manager to receive an e-mail when a customer submits a conversation or custom quote request (or show a message bubble on the conversations tab in Wordpress) but we can't seem to figure it out. It appears all e-mails are going to the admin e-mail and we can't change it within WooCommerce > Settings > E-mail. Any ideas how to change this?

  •  2,218
    WebWizards replied

    Hi Amelia,

    You could add the following code snippet to add another email other than admin for messages and quotes:

    add_filter('b2bking_recipient_new_message_quote', 'change_recipient',10,2);
    add_filter('b2bking_recipient_new_message', 'change_recipient',10,2);
    function change_recipient($recipient, $conversation){
        $second_admin = '[email protected]';
        $recipient = $recipient.','.$second_admin;
        return $recipient;
    }
    

    Replace '[email protected]' with your email.

  •  5
    Amelia replied

    Is there a snippet I can add to this to receive notifications for new orders as well? Would that be something configured elsewhere in WooCommerce?

  •  2,218
    WebWizards replied

    Is that the new order email received by the shop when a customer makes an order?

    You can control recipients for that directly in WooCommerce->Settings->Emails:

    Click manage:

    4939238804.png

    Add recipients:

    7623076063.png


  •  5
    Amelia replied

    Ahh, yes, that is correct. Thank you! I mistakenly thought only one e-mail address could be the recipient. 

  • Simon replied

    Hi,

    Would it be possible to have the email recipient depend on the customer requesting the quote?

    For example, if using SalesKing as well, can we have the email go to the assigned salesperson for that customer?


    thanks

  •  2,218
    WebWizards replied

    Hi Simon,

    I believe we can help you achieve this by writing and sending you a custom code snippet,

    For that, kindly please open a new separate ticket and provide us with your license details. 


    We can then assist with writing a snippet that sends the new message / quote email to the sales person assigned to the customer.


    Kind regards,

    Stefan