Okay
  Public Ticket #3798059
Set mail adress for request a quote
Closed

Comments

  •  2
    Terje started the conversation

    Hi.

    I use request a quote from B2b King

    When I receive a quote, it gets sent to the site main admin mail address.

    Is there a way for me to set a different mail address as the receiver of new quote mails?


  •  2,330
    WebWizards replied

    Hello Terje,

    To change the receiving email to a different address, other than the admin one, please add the following PHP code snippet to your site:

    add_filter('b2bking_recipient_new_message', function($recipient, $conversationid){
    	return '[email protected]';
    }, 10, 2);
    add_filter('b2bking_recipient_new_message_quote', function($recipient, $conversationid){
    	return '[email protected]';
    }, 10, 2);

    Replace the email address there with your custom one.

     

    Kind regards,

    Stefan