https://i0.wp.com/nicolamustone.blog/wp-content/uploads/2015/01/cancelled-booking.jpg?fit=825%2C354&ssl=1 354 825 Nicola Mustone https://nicolamustone.blog/wp-content/uploads/2020/02/logo-nm.png Nicola Mustone2015-01-16 11:40:472015-01-16 11:40:47Send the cancelled booking email notification to multiple addresses
Send the cancelled booking email notification to multiple addresses
By default WooCommerce Bookings sends the cancelled booking notification email only to the customer who purchased the booking.
In some cases could be useful to send this notification to the admin too so he is aware of this change, expecially if the site does not get so much purchases and you do not usually check the admin every day.
To do this, open your functions.php file located in wp-content/themes/your-theme-name/ and add this code at the end of it:
hey there, i’ve been looking for this! This is great thank you so much! I’ve tried, and when customer cancels frontend, admin now receives an email! However, if admin cancels backend, i get directed to another page which says this:
We are sorry to say that your booking could not be confirmed and has been cancelled. The details of the cancelled booking can be found below.
Fatal error: Call to a member function get_title() on a non-object in /home/sgpetser/public_html/wp-content/themes/listify-child/woocommerce-bookings/emails/customer-booking-cancelled.php on line 22
I hope you can help me out! =)
thanks in advance!
i’m sorry but this is not related to this article. You will need to open a new ticket here: https://support.woothemes.com/hc/en-us/requests
Hello. You have a great blog. Helped me a lot of times. I was wondering how I can send the REMINDER email to the admin as well
You can just add the admin’s email in the list in the snippet. In the example above I have 2 different email addresses.
Hi Nicola. Thanks for the answer. But I want to send the Reminder mail to the administrator. I thought this is for the Cancellation email.
Thanks in advance.
Sorry John, you are right!
Just change the last line of the snippet to this:
Please notice that I didn’t change the function name, if you want, you can do it here, its the second argument of the function. Also, change it on line 7 before to use the snippet.