Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues where WPML creates duplicate bookings for each language when an order is placed using WooCommerce Booking, and these duplicates are then incorrectly synced to Google Calendar, causing multiple notifications and sync errors, we have a solution for you.
Solution:
1. Ensure you back up your site.
2. Navigate to the file at

wp-content/plugins/woocommerce-multilingual/compatibility/WcBookings/class-wcml-bookings.php

.
3. Modify the file by replacing the line at 1805 from:

&& in_array( $event->hook, [ 'wc-booking-reminder', 'wc-booking-complete' ], true )

to:

&& in_array( $event->hook, [ 'wc-booking-reminder', 'wc-booking-complete', 'woocommerce_admin_new_booking' ], true )

4. After making this change, try to reproduce the issue to see if it resolves the problem with duplicate emails.
For the Google Calendar issue, it has been escalated to our development team, and we will update you as soon as there is a resolution.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 23 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 10 months ago.

Assisted by: Osama Mersal.

Author Posts
December 7, 2022 at 10:17 am #12605429

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Sorry for the inconvenience. Our dev team tranced the issue to the booking plugin, and they are checking how we could fix the issue.

I'll update you as soon as I get new updates regarding the issue.

Thanks for your patience

Best regards,
Osama

December 10, 2022 at 9:51 am #12625297

markC-59

Ironically I get an e-mail from your support cleanup robot, making sure that nothing is left behind or forgotten. So have you forgotten about my request? This is getting ridiculous.

December 10, 2022 at 10:00 am #12625303

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I didn't forget your request, but I don't have updates regarding the Google Calendar issue yet. It's been escalated to our dev team, and I'll update you with our findings.

Please note that we have a high workload, so it might take some time.

Thanks for your patience

Best regards,
Osama

January 22, 2023 at 6:15 am #12865619

markC-59

So, what's the status on checking the Google Calendar issue?

January 22, 2023 at 6:18 am #12865621

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Our dev team hasn't found a workaround to this issue yet. I'll update you as soon as I get an update from the escalated ticket.

Thanks for your patience and understanding

Best regards,
Osama

January 22, 2023 at 6:23 am #12865625

markC-59

Can you suggest a work around that we implement temporarily on our end, as your Dev team works to really fix this?

January 22, 2023 at 6:25 am #12865627

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I'm afraid there is no current workaround for this case, as it needs a compatibility code.

Regards,
Osama

January 26, 2023 at 2:00 pm #12897917

markC-59

Hello

Does 4.6 address our problem?

Mark

https://wpml.org/changelog/2023/01/wpml-4-6-beta-bulk-automatic-translation-and-language-switcher-block/?utm_source=AT&utm_medium=emails&utm_campaign=wpml-4-6-beta1

January 26, 2023 at 2:51 pm #12898343

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Mark,

Nope, this beta version doesn't address your issue.

Best regards,
Osama