WooCommerce Bookings reminder email, changing the due date

WooCommerce Bookings is a premium plugin by WooThemes 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.

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


add_filter( 'woocommerce_bookings_remind_before_days', create_function( '', 'return 3;' ) );

view raw

functions.php

hosted with ❤ by GitHub

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.

WooCommerce Bookings


More Posts That You Might Like…


6 responses to “WooCommerce Bookings reminder email, changing the due date”

  1. […] 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. David Villalpando Avatar

      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!

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: