New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Appointment creation in Google calendar #1399
Comments
Hello! There is currently already two way sync support with Google Calendar. Which error are you getting during syncing?
|
I've hit this issue as well. In the WordPress plugin I used before (Webba), I could enter appointments directly in my Google Calendar and they would be picked up by Webba during the sync so that the slot I'd just booked out could not be selected by someone else. Now, i have to use the EA backend to do this which is really inconvenient if I'm in a meeting and need to block out my time, when all I have is my phone. Would it be possible for EA to populate the necessary "missing" fields with default values when syncing an appointment that is created in Google Calendar so that this scenario, and the error detailed above by @JiroMusik, can be catered for? |
Hey sorry for asking again but how is the two-way sync supposed to work? I would love to integrate but what field in Google Calendar app needs to be populated? Everything created in EA is synced to google but not the other way round Edit: Changes to existing entries, created in EA are synchronized to EA. But not even a duplicated google calendar event is added. |
I think I found the culprit: In a file on your server... nano application/controllers/Google.php In this Google.php file look for the entry below.
change to thenumber that belongs to the provider that is connected to the email account NOT THE ADMIN
If you book: |
@JiroMusik Could you please download and try the latest 1.5 dev package and see if you can reproduce the problem there? The google sync was updated to fix minor issues. @Forsskieken Thanks for providing your solution here, but this will probably won't fix the problem |
About is showing 1.5.0-dev.4 |
As i put also here, to be able to get the address when booked in Google calendar, I would also add address, city and zipcode to the location field, when the client books: booking.php: if (empty($appointment['location']) && !empty($service['location'])) {
$appointment['location'] = $service['location'];
}
// if not location: use the full address given when booked
if (empty($appointment['location'])) {
$appointment['location'] = $customer['address'] . ' ' . $customer['zip_code'] . ' ' . $customer['city'];
} |
There is no newer package out so far. Hmm I'm using Google Sync for quite some time and the token would not get expired. Could it be that the sync process was not executed for some time? Are you using a cron job for syncing? @iriikoad Please create a new ticket for this
|
I digged into this because this is not an issue in 1.4.3 @alextselegidis I do not understand how you cannot be affected by this issue (unless you have a local version that is different than the 1.5.0-dev4 release). application/models/Appointments_model.php has a new code snipped for the validation function (see picture) I uncommented the two lines that cause this issue and now it works again. Either this validation is unnecessary and can be removed or in application/models/Google.php in the sync function 'id_users_customer' and 'id_services' should not be set to NULL. |
My sync with the google calendar also still does not work correctly and somehow the working 1-way sync disconnects after few days or weeks too.Am 08.02.2024 12:33 schrieb Gregor ***@***.***>:
I now run into this issue as well since using the dev package.
On 1.4.3 this was not an issue an my calendar events in Google were exactly the same.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi guys,
is there any way to integrate the sync with Events created in Google Calendar?
So when I create an event that does not match all required fields, the sync will not finish and shows an error message.
Is there any way to set default options for all required fields?
Thanks
jiromusik
The text was updated successfully, but these errors were encountered: