{"id":517,"date":"2023-10-10T12:52:35","date_gmt":"2023-10-10T10:52:35","guid":{"rendered":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/?post_type=lsvr_kba&#038;p=517"},"modified":"2024-10-14T12:30:07","modified_gmt":"2024-10-14T10:30:07","slug":"google-calendar-integration","status":"publish","type":"lsvr_kba","link":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/knowledge-base\/google-calendar-integration\/","title":{"rendered":"Google Calendar Integration"},"content":{"rendered":"<p>In this step-by-step guide, we&#8217;ll walk you through the process of integrating your booking system with Google Calendar. The process consists of four stages. Creating a service account in Google Cloud, creating a calendar in Google Calendar, generating JSON code and configuring the Chauffeur Taxi Booking System plugin.<\/p>\n<h2>Create Google Service Account<\/h2>\n<p>Log in to your Google account. Open the Google Cloud page at <a href=\"https:\/\/console.cloud.google.com\" target=\"_blank\" rel=\"noopener\">https:\/\/console.cloud.google.com<\/a> (if you are not logged in, Google will prompt you to log in). Click on the <mark>&#8216;IAM &amp; Admin&#8217;<\/mark> button.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_01.png\">See screenshot<\/a><\/p>\n<p>From the left menu, select <mark>&#8216;Service Accounts&#8217;<\/mark>.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_02.png\">See screenshot<\/a><\/p>\n<p>Click the <mark>&#8216;+ Create Service Account&#8217;<\/mark> button.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_03.png\">See screenshot<\/a><\/p>\n<p>Enter a name for the service account and click <mark>&#8216;Done&#8217;<\/mark>.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_04.png\">See screenshot<\/a><\/p>\n<p>Copy the generated email address; we will need it later.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_05.png\">See screenshot<\/a><\/p>\n<p>Do not close Google Cloud page for now; we will return to it later.<\/p>\n<h2>Create Google Calendar<\/h2>\n<p>Open the Google Calendar page at <a href=\"https:\/\/calendar.google.com\" target=\"_blank\" rel=\"noopener\">https:\/\/calendar.google.com<\/a>. From the left menu, select <mark>&#8216;Add Other Calendars&#8217;<\/mark> by clicking on the plus icon, and then choose <mark>&#8216;Create New Calendar&#8217;<\/mark> from the dropdown menu.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_06.png\">See screenshot<\/a><\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_07.png\">See screenshot<\/a><\/p>\n<p>Provide a name for the calendar, an optional description, and click <mark>&#8216;Create Calendar&#8217;<\/mark>.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_08.png\">See screenshot<\/a><\/p>\n<p>You will be immediately redirected to the settings page for this calendar. If not, simply select the newly created calendar from the left menu and go to <mark>&#8216;Calendar Settings&#8217;<\/mark>. Scroll down to the <mark>&#8216;Share With Specific People or Groups&#8217;<\/mark> section and click the <mark>&#8216;+ Add People and Groups&#8217;<\/mark> button.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_09.png\">See screenshot<\/a><\/p>\n<p>A modal window will appear; in the first field, paste the email address you copied earlier (from Google Cloud). From the list of permissions, select <mark>&#8216;Make Changes and Manage Sharing&#8217;<\/mark> and click <mark>&#8216;Send&#8217;<\/mark>.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_10.png\">See screenshot<\/a><\/p>\n<p>As you can see, the previously generated service account has access to this calendar.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_11.png\">See screenshot<\/a><\/p>\n<p>Scroll down to find the <mark>&#8216;Calendar ID&#8217;<\/mark> &#8211; we will need this key later, so copy it &#8211; this is your <strong>&#8216;Calendar ID&#8217;<\/strong>.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_12.png\">See screenshot<\/a><\/p>\n<h2>Generate JSON<\/h2>\n<p>At this point, we will generate JSON code. Return to the Service accounts page you left open in Google Cloud. Click the three dots icon (Actions) and choose <mark>&#8216;Manage Keys&#8217;<\/mark> from the list.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_13.png\">See screenshot<\/a><\/p>\n<p>A new <mark>&#8216;Keys&#8217;<\/mark> page will open; click the <mark>&#8216;Add Key&#8217;<\/mark> button and select <mark>&#8216;Create New Key&#8217;<\/mark>.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_14.png\">See screenshot<\/a><\/p>\n<p>A modal window will appear; choose <mark>&#8216;JSON&#8217;<\/mark> as the key type and click <mark>&#8216;Create&#8217;<\/mark>.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_15.png\">See screenshot<\/a><\/p>\n<p>After a moment, a file save window will appear with a .json file. Save this file to your computer&#8217;s disk, and then close <mark>&#8216;Private Key Saved to Your Computer&#8217;<\/mark> prompt.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_16.png\">See screenshot<\/a><\/p>\n<p>Open the previously generated file (e.g., with a text editor) &#8211; select the entire contents of the file and copy it &#8211; this is your <strong>&#8216;JSON Code&#8217;<\/strong>.<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/guides\/calendar_17.png\">See screenshot<\/a><\/p>\n<h2>Configure Chauffeur Booking Plugin<\/h2>\n<p>Go to your WordPress admin, navigate to the <mark>&#8216;Chauffeur Booking System&#8217;<\/mark> -&gt; <mark>&#8216;Booking Forms&#8217;<\/mark> menu, click on the desired form, and then go to the <mark>&#8216;Google Calendar&#8217;<\/mark> tab. Fill in the following:<\/p>\n<h3>Google Calendar<\/h3>\n<p>Set <mark>&#8216;Enable&#8217;<\/mark> to activate Google Calendar integration.<\/p>\n<h3>ID<\/h3>\n<p>Paste the previously copied <mark>&#8216;Calendar ID&#8217;<\/mark>.<\/p>\n<h3>Settings<\/h3>\n<p>Paste the previously copied <mark>&#8216;JSON Code&#8217;<\/mark>.<\/p>\n<h3>Regenerate Token<\/h3>\n<p>Leave the <mark>&#8216;Enable&#8217;<\/mark> option.<\/p>\n<h3>Adding Event<\/h3>\n<p>In this section, specify when a particular booking should be added to the calendar. The <mark>&#8216;Sending the booking&#8217;<\/mark> option means the reservation will be added to the calendar immediately upon booking. The <mark>&#8216;Updating&#8217;<\/mark> options mean the reservation will be added to the calendar only when its status changes according to the selected setting.<\/p>\n<p>Save your settings by clicking <mark>&#8216;Update&#8217;<\/mark>. Congratulations, you have just connected your booking system with your calendar!<\/p>\n<h2>FAQ &#8211; Frequently Asked Questions<\/h2>\n<h3>1. The Calendar Isn\u2019t Working Despite Following the Documentation. What Now?<\/h3>\n<p>If the calendar is not functioning, ensure that the necessary API is enabled for your project. Some Cloud APIs are not enabled by default and require manual activation.<\/p>\n<p><strong>To enable an API for a project using the console:<\/strong><\/p>\n<ol>\n<li>Go to the Google Cloud Console API Library.<\/li>\n<li>Select the project you wish to use.<\/li>\n<li>Find the API you need using the search field.<\/li>\n<li>Click <mark>&#8216;Enable&#8217;<\/mark> on the API page.<\/li>\n<\/ol>\n<h3>2. It\u2019s Still Not Working. What Else Can I Check?<\/h3>\n<p>Go to your WordPress admin, navigate to the <mark>&#8216;Settings&#8217;<\/mark> -&gt; <mark>&#8216;Chauffeur Booking System&#8217;<\/mark> -&gt; <mark>&#8216;Log Manager&#8217;<\/mark> menu, and go to the <mark>&#8216;Google Calendar&#8217;<\/mark> tab. Here, you will find the error log related to the calendar. Check for any errors listed, and if present, follow the provided instructions to resolve them.<\/p>\n<h3>3. Can I Edit\/Delete a Booking in the Calendar, and Will It Reflect in the &#8216;Bookings&#8217; Menu in the Plugin?<\/h3>\n<p>No, synchronization with the calendar is one-way, from the plugin to the calendar. Any modifications made directly in the calendar will not be reflected in the Chauffeur Booking System plugin.<\/p>\n<div class=\"doc-version\">\n<p><strong>Summary<\/strong><\/p>\n<p>Document version: 1.2<br \/>\nLast updated: October 14, 2024<br \/>\nPlugin version: 6.8+<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this step-by-step guide, we&#8217;ll walk you through the process of integrating your booking system with Google Calendar. The process consists of four stages. Creating a service account in Google Cloud, creating a calendar in Google Calendar, generating JSON code and configuring the Chauffeur Taxi Booking System plugin. Create Google Service Account Log in to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"lsvr_kba_cat":[10],"lsvr_kba_tag":[],"_links":{"self":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/517"}],"collection":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/comments?post=517"}],"version-history":[{"count":10,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/517\/revisions"}],"predecessor-version":[{"id":966,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/517\/revisions\/966"}],"wp:attachment":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/media?parent=517"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba_cat?post=517"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba_tag?post=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}