Option to sync staff with their own Google Calendar
No description provided.
Comments (9)
-
-
Can you add a filter that creates a google calendar for each staff instead of each product?
I’m not sure if this is correct, but something like this:
$calendar_sync_type = apply_filters( 'woocommerce_appointments_calendar_sync_type', 'product' ); if ( $calendar_sync_type === 'staff' ) { // Sync by staff $staff = get_userdata(get_post_meta( $appointment_id, '_appointment_staff_id', true )); $calendar_id = get_post_meta( $staff->first_name, '_wc_appointments_gcal_calendar_id', true ); else { // Sync by product $calendar_id = get_post_meta( $product->id, '_wc_appointments_gcal_calendar_id', true ); }
-
Hi @johannesmutter
Did you manage to get that code working?
Thanks
-
Yup. But it’s almost a year ago, will be difficult to find that code snippet again.
-
In your functions.php, maybe? Would be really super if you could share it! :) If you do, please let me know!
-
I'm interested too !
-
reporter Issue
#249was marked as a duplicate of this issue. -
Account Deleted From what I understand in the above posts it is is possible to have different calendars sync for different products. Correct?
How can I implement this?
-
reporter - changed status to resolved
Available from 3.7.0 onwards. Staff is able to sync events from all calendars (Google, Apple, Microsoft, ...) that support direct access through .ics.
- Log in to comment
I thinks it’s better to create a separate google calendars for each staff, instead of each product. So the staff would be able to subscribe to a certain calendar and get notified e.g. on their smartphone.
Also I think it’s better for the visibility to display “Service/Product Title”, “Client Name” (and “Staff Name”):
In Line 517:
If one has many different products/services, the Google Calendar becomes quite overloaded: