Hi Pinal.
Thank you again for the help on this. But it’s a bit more complex than that. If I add the multiple addresses on Request for New Quote, it will send the quote for both.
What I’m trying to do is first check user province or state, and then send to the email assigned to that province or state.
For example, if a user from California submits a quote, it sends to [email protected]. But if someone from Arizona submits a quote, it sends an email to [email protected].
The code I have works with the quote plugin inactive using ‘woocommerce_email_recepient_new_order’. With the plugin activated, I tested using ‘woocommerce_email_recepient_new_order’ and ‘woocommerce_email_recepient_qwc_req_new_quote’. But when I have the code added, it simply doesn’t send any admin emails.
Hi Pinal.
I tested the qwc_req_new_quote option, because I wanted to change the admin receiver email, but it didn’t work. It only sent the email for the one set on the “Request for New Quote” setting.
Thank you again for the help.