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.
This topic contains 23 replies, has 2 voices.
Last updated by 1 year, 10 months ago.
Assisted by: Osama Mersal.