Nicola Mustone

Happiness Lead @ Automattic



WooCommerce Bookings Reminder Email, Changing the Due Date

This post was last updated on the 24th of November, 2023. The code is compatible with the current versions of WooCommerce, WooCommerce Bookings and PHP 8.

WooCommerce Bookings is a premium plugin by Woo that allow you to sell time. As you could imagine, people sometimes book for your services, but forgot about it. WooCommerce Bookings includes a reminder email notification though that is sent out one day before the booking date.

If you want to change the due date, to three days before the booking date in example, you can do it with a filter.

Before you make any code changes, have a backup of your site. This will help you restore things in case of unforeseen errors. I recommend using Jetpack Backup for real-time backups and one-click restores.

Open the file functions.php located in wp-content/themes/your-child-theme-name/ and add this code at the end of the file:

From now on, the booking reminder will be sent to your customers three days before the booking date. You can change that to something else if you want, or set up some more complex scenarios.


Subscribe to This Blog

Receive new articles from this blog directly in your inbox! No spam guaranteed!

Join 670 other subscribers

8 responses to “WooCommerce Bookings Reminder Email, Changing the Due Date”

  1. Weekly Roundup: March 4, 2016 – Sell with WP

    […] WooCommerce Bookings? Here’s a quick tutorial on changing reminder emails to be sent to customers […]

  2. So if someone wanted to send this reminder the day AFTER the booking, how would someone go about that? I tried making that “return 3;” a negative number “return -1;” but php just passes that as a positive number. Any thoughts?

    1. Hi Michael,
      I’m sorry but you’d have to edit the core code to do this. The filter only allows to change it to a date before the booking date, not after.

      I DO NOT recommend to touch the core code anyway, it’s always a very bad idea.

    2. Hey Michael, did you find a way to do this? I’d like to remind my customers about their booking coming to an end instead of about to start…

  3. Hi Nicola,

    I would like to ask you one thing: I am in the situation when I would send the notification email exactly 3 days before the booking. What if a client creates a new booking 2 days before, would he/she be able to receive this notification? In other words, would any persons that book a date in the interval of 3 to 1 day before the booking, still receive this reminder email?

    Thanks!

  4. this is exactly what i was looking for, thank you!

  5. Hi,
    I just tried to add this to my website but when I do WordPress crashes. Is there any update to this code available?

    Thanks,
    Guido

    1. Hello Guido,
      I updated the article to use modern code. The way it was before was no longer supported in PHP 8.

Leave a Reply

You Might Also Like These Articles


Contribute to Improving This Blog

Did you enjoy this article? Was it helpful? Contribute to help me write more articles! The funds collected from this blog are reinvested directly into improving my skills or the blog so that I can provide more and better content!

One-Time
Monthly
Yearly

Make a one-time donation

Make a monthly donation

Make a yearly donation

Choose an amount

€1.00
€5.00
€10.00
€5.00
€15.00
€100.00
€5.00
€15.00
€100.00

Or enter a custom amount


Your contribution is appreciated.

Your contribution is appreciated.

Your contribution is appreciated.

DonateDonate monthlyDonate yearly

Don't Miss a Thing!

Receive new articles from this blog directly in your inbox!

No spam guaranteed!

Join 670 other subscribers

Continue Reading

Discover more from Nicola Mustone

Subscribe now to keep reading and get access to the full archive.

Continue reading