Public Ticket #3798059

Set mail adress for request a quote

Closed
Comments
5 Tickets 2
Terje Fevaag started the conversation 2 years ago on January 10, 2025 at 9:16am

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,762
KingsPlugins replied 2 years ago on January 11, 2025 at 9:20am

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

1

Sign In