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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|add_filter( 'woocommerce_bookings_remind_before_days', create_function( '', 'return 3;' ) );|
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.
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?
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.
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…
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?
this is exactly what i was looking for, thank you!