Google calendar


Overview


Since the version 3.2.0, you have the ability to connect calendars with different users and assign to each service an unlimited number of calendars. Thus, the data on reservations can come in an unlimited number of Google calendars.

Opportunities and limitations of integration with the Google Calendar:

Send data about appointment/reservation
to Google Calendar
+
Multiple calendars +
Automatic update of data in Google Calendar when updating data in Webba Booking +
Automatic update of data in Webba Booking when updating data in Google Calendar
Automatic deletion of data in Google Calendar when deleting data in webba booking +
Access for employees to authorize calendars +
Import data from google calendar into Webba Booking

Google API setup


Open the Google cloud platform:

You need to create a new project or open existing.
In this manual, we create a new project, but you can use projects created previously.

https://console.cloud.google.com/home/dashboard



Give your project a name and click  Create



Once the project is created, scroll down to Getting Started section and click on Enable APIs and get credentials like keys.



Click on ENABLE APIS AND SERVICES



Click on Calendar API



Click on ENABLE



Click on Create credentials


 


Click on Client ID



Click on Configure consent screen



Complete with an application name (i.e. “Webba Calendar”) and click Save. Others fields are optional.



When you click Save, the following new window appears. Click on Create Credentials



Choose OAuth client ID



Select Web application, enter the client name (i.e. Web client 1) and click Create


 

 


Copy the client ID and client secret and keep it somewhere (you will need that at the following part Google Calendar setup in Webba Booking)



We have finished with Google API setup at the moment, we will come back to it later to add Authorized redirect URIs to the application.


Google Calendar setup in Webba Booking


Setup Credentials

Open Webba Booking settings page.



Open the Google Calendar tab, paste the Google API Client ID and Google API Client Secret (that you kept somewhere just previously) and click Save Changes.


Add a new calendar


Open the Google Calendar page


Click Create new



Set the name of the calendar (i.e. “My first calendar”). This name can be arbitrary and used to identify the calendar.



If you need to give an access to this calendar to another (not administrator user) select the user in the “Give access to this calendar to”. Use this option if it’s required to authorize the calendar by the person that doesn’t have administrator role in your WP.

Set the Calendar id


In order to complete this, you need to create a calendar in your Google Calendar page.



Click Create a new calendar and give a name to this last. Then click Create Calendar.



Reload your Google Calendar page to make this last visible in your calendar list.



Click on your calendar to access to this settings.



Copy the Calendar ID.



And paste it in your form you opened just before in your dashboard and save.



Manage calendar authorization


After creating the calendar, this last need to be authorized (connect to real Google Calendar by its owner).
The process of authorization is different for WordPress administrators and other roles of users.

Authorization by administrators


Open the Google Calendar page



Click on Manage authorization for the calendar you want to authorize.



Copy this link



Go to your Google Cloud console. Then edit your project.



And paste your link there.



And click Save.

Important: Now you need to wait around 5 minutes.

Then you go back on your dashboard and click on Authorize button.



Click on Allow



Authorization by non administrators


Open the Google Calendar page.



Click on Manage authorization for the calendar you want to authorize



Click on Authorize button



Click on Allow



If you have been waiting 5 minutes, you should be redirected to this window.



Manage the event wording


To set the summary and description of a Google Calendar event, open the Settings page



Open the Translation tab and scroll down



Set the Google calendar event summary

Available placeholders are the following:

#service_name – service name
#customer_name – customer’s name
#appointment_id – unique appointment id


Set the Google calendar event description

Available placeholders are the followings:

#customer_name – customer’s name
#customer_phone – customer’s phone
#customer_email – customer’s email
#customer_comment – customer’s comment
#items_count – count of places (items) booked (for services with more than one item per time slot)
#appointment_id – unique appointment id
#customer_custom – coma separated list of custom fields.
#total_amount – total price with tax for appointment / reservation
#service_name – name of service


Setup a service to send data to Google Calendar


Open the Services page



Open the service for edit



Select the calendar



Save the service

Congratulations ! You are done with Google Calendar integration.


WEBBA BOOKING | WORDPRESS BOOKING PLUGIN