View Product Page

Plugin calendar settings

From YITH > Booking > Settings > “Calendars” you are able to manage the settings for the calendars that are visible to you (admin) in the backend in Dashboard > Calendar.

Plugin calendar
  • Default time step in daily calendar: Decide to show the daily calendar in blocks of 1 hour, 30 minutes or 15 minutes.
  • Default start time in daily calendar: Decide the default start time of your calendar view.
  • Booking name in calendar will include: Decide which information is shown in the name of the booking in the calendar.
examples
Show booking ID and product name
Booking ID and product name
Show booking ID and user name
Booking ID and user name
Show booking ID, product and user name
Booking ID, product and user name
Show booking ID, user and product name
Booking ID, user and product name

External calendars

In YITH > Booking > Settings > “Calendars”, you can find these two options:

External calendars settings

  • Calendar synchronization expires after: The minimum time for which the external sync is considered expired.
  • Show bookings of external calendars in plugin calendar: Enable to show external bookings in Dashboard > Calendar.

Example

If you set the first option to 30 minutes and synchronize a Booking product now (by contacting external services such as Airbnb or Booking.com), the loaded data will expire in 30 minutes.

So, if a customer checks the availability now, the plugin uses the loaded data as it is -still not expired-. After 30 minutes, the data will no longer be updated automatically, since it requires to be synchronized again.

If a customer checks the availability after 1 hour, the plugin will consider the data as expired and will update the external data to check the correct availability.


We recommend setting this option to a reasonable value to improve performance. Therefore, if you usually get a booking every 6 hours, you can set the “Calendar synchronization expires after” option, to 2 hours.
As a general rule, 30 minutes is a good sync expiration time for every Booking system.

Please note: Airbnb synchronizes external bookings every 2 hours.

For more information on synchronizing your calendars, please refer to this page here.

Google Calendar

Thanks to the integration with Google Calendar, the admin can view bookings on their own Google Calendar. The booking synchronization is one-way sync (from your site to Google Calendar).

You can configure the Google Calendar from YITH > Booking > Settings > “Calendars”.

First of all, you need to set Client ID and Client Secret as explained in the related section of the plugin.

Google calendar

After creating a project in https://console.developers.google.com/ and enabling Google Calendar API in Your Project -> Library, you need to create an OAuth Client ID for a Web application in Your Project and create your credentials.

google_calendar_settings_2

When creating the client ID, select Web application in the Application type and enter a name. Then insert the link in the Authorized Redirect URLs.

google_calendar_settings_3After creat++ing your credentials, you need to copy the Client ID and Client Secret.

google_calendar_settings_4

Now you need to add and save the credentials.

Google calendar settings

Now, you can have access to Google Calendar from the related plugin section.

Google Calendar settings

You need to select the account that will be synchronized.

google_calendar_settings_7

Click on the Allow button to proceed with the calendars management.

google_calendar_settings_8

Now select the calendar on which you want to show all your bookings and save the options.

Google Calendar settings

Google Calendar settings

In Google Calendar settings, you can find some new options:

  • Debug: when applying a debug, this will show in the plugin Logs section.
  • Synchronize: you can choose when synchronizing bookings for one or all of the following options:
    • on booking creation
    • on booking update
    • on booking status update
    • on booking deletion.
  • Add note on sync: if enabled, a private note will be added to the booking every time the synchronization with Google Calendar is applied.
  • Event name will include: Decide which information is shown in the name of the booking in the calendar. You can see some examples on this page here.

Actions

There are two kinds of actions that can be applied for booking synchronization:

  • Synchronize not synchronized bookings: this allows synchronizing those bookings that have never been synchronized.
  • Synchronize all bookings (Force): this allows forcing the synchronization of all the bookings available on the site.