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:


More Posts That You Might Like…


6 responses to “Send the cancelled booking email notification to multiple addresses”

  1. 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.
    Booked Product
    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!

  2. Hi,
    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

    Thanks!

  3. 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

    1. Hey John,
      You can just add the admin’s email in the list in the snippet. In the example above I have 2 different email addresses.

  4. 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.

    1. Sorry John, you are right!

      Just change the last line of the snippet to this:

      add_filter( 'woocommerce_email_recipient_booking_reminder', 'wc_send_booking_cancelled_multiple_addresses' );
      

      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.

Leave a Reply

Categories

Newsletter

Receive new articles from this blog directly in your inbox!

No spam guaranteed!

Blog at WordPress.com.

%d bloggers like this: