User documentation

  1. Home
  2. User documentation
  3. Notification Pack
  4. Send automatic notifications before / after the bookings

Send automatic notifications before / after the bookings

Now that you have activated Notification Pack add-on, you can set up scheduled notifications that will be sent few minutes before the start of a booked event.

  • Go to the Booking Activities Settings > “Notifications” tab
  • Click on the new “1 day before a booking” row
  • Else, add a new notification by clicking the “Add a notification” button, then select the desired recipient (Administrator or Customer), and choose the “Delay before / after a booked event” trigger. Finally, click on the newly created notification to change its settings.

You are now on the scheduled notification settings page.

  • Activate the notification
  • Activate the desired mediums: email, SMS and / or Push
  • Set the delay in minutes / hours / days
    Set a delay in minutes before or after the booking

  • Choose whether the notification should be sent “Before” or “After” the event in the selectbox
  • For groups of events, the “Send only once per group” option allows you to send this notification once for the whole group, instead of sending it for each event of the group
    Send scheduled notification once per group instead of for each booking

  • Write your email / SMS / Push thanks to the provided tags and with HTML (for the e-mail only), just like the other notifications
  • Enregistrez les modifications

Your notification will be automatically sent few minutes / hours / days before or after the event.

Note that if the recipient is the client, the notification will be sent for each booking, but if the recipient is the administrator, then the notification will be sent for each booked event (an event may have multiple bookings).

Let’s talk about the scheduled notifications accuracy now. Indeed, your notification may be sent late, or even not sent at all.

Go to the Booking Activities Settings, “Notifications” tab. Below the notifications table, you will find the “Scheduled notifications trigger” option.

Trigger scheduled notifications with or without a cron

Read this post to properly configure the “Scheduled notifications trigger” option according to your needs and learn more about this option.

  • If the “Scheduled notifications trigger” option is set to “On any page load (no cron required)”:
    • The notification is sent when a page is loaded. So if no page are loaded during the set delay, the notification won’t be sent. If a page is loaded but later than the desired delay, the notification will be late too.
  • If the “Scheduled notifications trigger” option is set to “On a specific page load (cron required)”:
    • You must visit the provided link every 15 minutes for proper operation (with a cron).
  • If multiple scheduled notifications are set and if the previous ones could not be sent, only the latest is sent.
  • If the scheduled notification could not be sent before the event, and the event is now past, the notification won’t be sent.
  • The notification won’t be sent when it is created / updated for the events currently meeting the conditions. Similarly, the notification won’t be sent when an event / booking currently meeting the conditions is created.

There is also a minimum delay of 15mn by default between each check, to keep good performances.

Advanced users, you can change that minimum interval by code:
add_filter( 'banp_scheduled_notifications_min_delay', function(){ return 900; } ); // 900s = 15mn

However, remember that 1 check per minute = 1440 checks a day, while 1 check per quarter hour = 360 checks a day only. If you are using a cron, 1 check = 1 additional server request, if you are not using a cron 1 check = 1 page load that may take longer, especially if the “Asynchronous Notifications” option is deactivated. So it is recommended to keep that number as high as is acceptable for you.

How can we help?