Add customer détails in Google Agenda sync in note

78 views
Skip to first unread message

Informatique Connect

unread,
Oct 20, 2023, 5:58:30 PM10/20/23
to Easy!Appointments - Support Group
Hello,

Does anyone know how can I include the customer details in the note of the appointment when synchronising with google ? It would be great to consult name last name address etc directly in my calendar app 

Thanks 

JG

unread,
Oct 20, 2023, 6:33:48 PM10/20/23
to Easy!Appointments - Support Group
I did this modification in 1.4.3. You edit application/libraries/google_sync.php for both the 

public function add_appointment
and
public function update_appointment

For the note of the google calendar appointment you want to edit $eventdescription

It can handle html tags for formatting.

Informatique Connect

unread,
Oct 25, 2023, 8:16:00 AM10/25/23
to Easy!Appointments - Support Group
thanks for your replay unfortunately I tried to add information in the variable in
$event->setDescription($appointment['notes']);
but I get an error 

decke wand boden Wohnfachmarkt

unread,
May 28, 2024, 5:05:35 AMMay 28
to Easy!Appointments - Support Group
I found the solution and would like to share it with you all here:

    // Erstellung der Beschreibung mit dem Titel der E-Mail, den Notizen und dem Kundenname
    $description = !empty($service) ? $service['name'] : 'Unavailable';
    $description .= "\n\n"; // Leerzeile
$description .= "Termin: " . date('d. m. Y | H:i', strtotime($appointment['start_datetime'])) . " Uhr\n\n";
    $description .= $appointment['notes'] ?? '';
    if (!empty($customer['first_name']) && !empty($customer['last_name'])) {
        $description .= "\n\n"; // Leerzeile
        $description .= "Interessent: " . $customer['first_name'] . " " . $customer['last_name'] . "\n";
        $description .= "\n"; // Leerzeile
        $description .= "Telefonnummer: " . $customer['phone_number'] . "\n";
        $description .= "\n"; // Leerzeile
        $description .= "Email Adresse: " . $customer['email'] . "\n";
$description .= "\n"; // Leerzeile
    }
    $event->setDescription($description);

Alex Tselegidis

unread,
Jun 4, 2024, 7:53:30 AMJun 4
to Easy!Appointments - Support Group
Hello! 

Thanks for sharing this. 

Just bear in mind that the appointment notes are visible to the client too, so you may want to sync them but not get them back as a value (while fetching changes from google calendar to EA). 

Other than that this will do. 


Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!



Reply all
Reply to author
Forward
0 new messages