Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+02:00)

Tagged: 

This topic contains 10 replies, has 0 voices.

Last updated by Bigul 3 days, 13 hours ago.

Assisted by: Bigul.

Author Posts
May 26, 2025 at 5:18 pm

Fernando

Background of the issue:
I am trying to manage booking reservations on our site using WooCommerce Booking. I expected to see single reservations in the calendar, which can be up to 80 per hour.

Symptoms:
WooCommerce Booking is showing duplicated reservation orders on the booking calendar in the administration. After verification, each duplicate is an automatic translation.

Questions:
Why are there duplicated reservations in the booking calendar?
How can I prevent automatic translations from creating duplicate reservations?

May 26, 2025 at 8:17 pm
May 27, 2025 at 6:10 am #17075666

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

I tried a workaround by adding the following code to the theme’s functions.php file and then made a couple of bookings. The booking calendar is no longer showing duplicate entries.

add_filter( 'woocommerce_bookings_gcalendar_sync', function( $event ) {
    add_filter( 'option_wc_bookings_gcalendar_refresh_token', '__return_false' );

    return $event;
} );

Could you please check it again on the staging site? Refer to the attached images for more details.

--
Thanks!

Bigul

2025-05-27_11h37_24.png
2025-05-27_11h34_23.png
2025-05-27_11h33_50.png
May 27, 2025 at 1:40 pm #17078971

Fernando

Hello Bigul, thanks for the update.

I made two tests in staging site after adding your code.

The first one was with no duplicate, but I verified the extensions and WooCommerce Multilingual was deactivated, after activation I did another test and the duplicate is there.

It seems that something in WooCommerce Multilingual triggers the duplication.

By the way, staging has been purged of all client information you can duplicate the site if you need, to test it on your side.

Thanks

Screenshot 2025-05-27 at 9.35.57 AM.png
May 27, 2025 at 5:09 pm #17080069

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. It would be great if you could reproduce the issue on the sandbox site. This will allow us to escalate the ticket directly to our Compatibility team.

Have you already imported the site into the sandbox environment: hidden link? Because the sandbox site is only for recreating the bugs in a clean installation.

Therefore, can you please try to reproduce the bug here: hidden link

--
Thanks!

Bigul

May 27, 2025 at 5:51 pm #17080219

Fernando

I understand, but the dashboard says :

DO NOT MIGRATE YOUR SITE HERE
Use this sandbox site to reproduce your issue in a minimal environment.

So I don't understand what should I import or how...

plus, in the original conversation you asked the following:

Bigul : 2) Please allow me to make a copy of your site using the Duplicator plugin (https://wordpress.org/plugins/duplicator/) for detailed testing and escalation
Fernando : Yes but I would need to delete all our customers orders to protect their privacy
Bigul : Ok. Please do it on your staging site and update us. We will make a copy after that

And that is exactly what I did.

Please advice

May 28, 2025 at 7:58 pm #17085384

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. I consulted with our team, and this appears to be a compatibility issue that requires further debugging and escalation.

As part of our escalation procedure, we need to replicate the issue on a clean installation. For this, I have set up the following sandbox site (a fresh installation):

hidden link

WPML and WooCommerce are already activated on the site. Please follow these steps and let us know if the issue can be reproduced:

- Install and activate the WooCommerce Bookings plugin
- Configure it as you have on your live site
- Create a Booking Product and translate it
- Make a booking
- Check if the Calendar shows duplicate entries

This will help us investigate the issue in a controlled environment. Looking forward to your feedback.

--
Thanks!

Bigul

June 3, 2025 at 2:35 pm #17102944

Fernando

Hello Bigul,

I followed your steps and there are no duplicates in the sandbox's calendar.

How can we fix the issue in our live site?

Please advise

June 4, 2025 at 4:20 am #17104423

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. I will make a copy of your staging site and debug it locally. We will get back to you as early as possible. Please wait.

--
Thanks!

Bigul

June 11, 2025 at 6:05 pm #17127591

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

The issue persists after the initial troubleshooting steps. Therefore, the ticket has been escalated to our developers for further investigation. A fix will be included in a future version of WooCommerce Multilingual.

We will update you as soon as we receive any feedback from our developers. Please wait.

--
Thanks!

Bigul

June 21, 2025 at 4:28 pm #17156235

Fernando

Hello, I would like to add the following related issues I noticed.

The translation of the booking item is affecting the display of the reservations on the calendar, basically each reservation is automatically translated creating a duplicate not only in the calendar but also the email notifications.

For example, if a reservation is shown in the calendar and I edit it in English there is an error (no console track) and all reservations disappear from the calendar. When editing a reservation I need to make sure I click on the French view to avoid this error.

It might help tracking down the issue.

Thanks for your help

June 23, 2025 at 7:12 am #17158207

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the feedback. We have an update on this. The booking duplication issue does not occur when we translate the Booking Products into English. We confirmed this by creating a test Booking Product (set as a private post) and translating it to English. The results were as expected.

Refer to the following post and screencast links for more details.

hidden link (Test Post)

hidden link (Booking from existing post after translating it)

hidden link (Booking from the test post after translating it)

Please test it on your end now and let us know your feedback.

--
Thanks!

Bigul