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.

https://www.woothemes.com/products/woocommerce-bookings/

6 replies
  1. Michael Wiese
    Michael Wiese says:

    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?

    Reply
    • Nicola Mustone
      Nicola Mustone says:

      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.

      Reply
    • David Villalpando
      David Villalpando says:

      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…

      Reply
  2. Sebastian
    Sebastian says:

    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!

    Reply

Trackbacks & Pingbacks

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

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply