Skip to content Skip to sidebar

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

Problem:
The client is experiencing an issue where, in the original language (Spanish), the booking system allows booking more slots than available, despite the system working correctly in a translated language (Euskera).
Solution:
We recommend the following steps to address the issue:
1. Create a full site backup.
2. Navigate to

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

and edit the file.
3. Comment out the line by adding

//

at the beginning:

//add_filter( 'woocommerce_bookings_filter_time_slots', [ $this, 'fix_bookings_filter_time_slots_when_product_not_translated' ], 10, 3 );

4. Save the changes.
5. Ensure that the bookable product is duplicated or translated to all languages.
If this solution does not resolve the issue or seems outdated, 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 problem 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 8 replies, has 0 voices.

Last updated by Carlos Rojas 4 weeks ago.

Assisted by: Carlos Rojas.

Author Posts
July 29, 2025 at 2:48 pm #17279555

rafaelF-23

Yes, sorry about that. Both the 5.50 version and the workaround work for the first mentioned problem which is counting people as reservations.

But now we face a different issue, in one of the languages, although counting people as reservations correctly, i can still book more than the maximum slots availability.

As you can see in the screenshot the available slots are 10, and I'm able to put 12 and continue the reservation.

If you want i can try to reproduce this in the sandbox

July 29, 2025 at 3:40 pm #17279777

Laura
WPML Supporter since 05/2018

Languages: English (English ) Italian (Italiano )

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

Yes, thanks. I'll share the hidden link">link again.

August 6, 2025 at 11:03 am #17299168

rafaelF-23

Hi there, sorry for the delay.

I can't seem to replicate the issue in the sandboox as i encounter another issue, the calendar in the translated version doesn't charge correctly.

But in the original version, which is where we seem to have this issue, it works correctly. So what does this mean?

Also, we are using the 5.51 version with the workaround, not sure if the sandbox has the same.

translated version.png
original version.png
August 7, 2025 at 10:59 am #17302303

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hello,
My name is Carlos and I will continue working on this ticket

I have reproduced the issue and applied the workaround described in the erratum page, but the issue persists, and the calendar is not loading the available dates in EU. I have escalated this ticket to our 2nd tier of support so our specialists can take a deeper look at this issue.

I'll get back to you as soon as I get more information.

August 8, 2025 at 11:42 am #17305265

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hi there,

You can now see the calendar working on the translated products. Please check if the issue persists or has disappeared on the sandbox site.

August 11, 2025 at 10:29 am #17309182

rafaelF-23

Hi,
Everything works correctly in the sandbox, i cannot reproduce the error, but i still have it on my site, where only 1 spot is left, I'm allowed to book as many as i want..

what's the next step?

1-1.png
2-2.png
August 11, 2025 at 10:56 am #17309259

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hi there,

Please follow these steps:
- Create a full site backup
- Edit the file /wp-content/plugins/woocommerce-multilingual/compatibility/WcBookings/class-wcml-bookings.php
- Comment the line:

add_filter( 'woocommerce_bookings_filter_time_slots', [ $this, 'fix_bookings_filter_time_slots_when_product_not_translated' ], 10, 3 );

- Save the changes
- Then make sure the bookable product is duplicated or translated to all languages

That should solve the problem.

August 13, 2025 at 10:17 am #17316664

rafaelF-23

Hey, we did as you said, but unfortunately is still not working correctly.

As said before, in the translated language (euskera) you can see it work correctly, but in the original (Spanish) it still let's me book more that the available spots.

You can check with this product: hidden link

August 13, 2025 at 11:20 am #17317007

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hi there,

So, the issue happens only in the default language (Spanish). WPML plugins make no changes to the content or configuration in the default language. I kindly ask you to deactivate the WPML plugins and check if the problem in the Spanish bookable product persists.