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
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

This topic contains 4 replies, has 1 voice.

Last updated by Itamar 2 days, 6 hours ago.

Assisted by: Itamar.

Author Posts
June 23, 2025 at 1:34 pm #17160672

nicolasM-45

Background of the issue:
I am trying to book an activity with a resource using WooCommerce Booking. The issue can be seen on this page: hidden link. I expected the resource count in the inventory to decrease correctly.

Symptoms:
The count of the resource in the inventory drops twice as much as expected, leading to incorrect resource booking.

Questions:
Why is the resource count in the inventory dropping twice?
How can I ensure the correct amount of resource is deducted from the inventory?

June 23, 2025 at 1:34 pm #17160688

nicolasM-45

From Woocommerce :

I understand you are seeing multiple duplicate bookings for the same booking on your site.

This duplication is occurring because it appears that WPML is handling the bookings differently than expected, resulting in duplication.

We have seen similar reports from other merchants and have advised contacting WPML, as the duplication is occurring from that plugin. WPML seems to duplicate the bookings into different languages which causes this issue. You can review the similar reports that are available on the WPML forum here:

https://wpml.org/forums/topic/double-bookings-in-woocoomerce-booking-across-languages/
https://wpml.org/forums/topic/woocommerce-bookings-duplicate-resource-bookings/
_________________________

Right now, as a workaround, I am running that query every minute :

DELETE wp_posts
FROM wp_posts
JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id
WHERE wp_posts.post_type = 'wc_booking'
AND wp_postmeta.meta_key = '_booking_duplicate_of'

June 24, 2025 at 8:55 pm #17166830

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

We have a known issue with the WooCommerce Booking plugin and its “Max bookings per block” feature. Please check it at the following link and see if it is the same issue you are experiencing.

https://wpml.org/errata/woocommerce-bookings-max-bookings-per-block-not-working-correctly/

If you need further help with this issue, please share your site's Debug information. You can read about it here.

http://wpml.org/faq/provide-debug-information-faster-support/

Regards,
Itamar.

July 1, 2025 at 12:47 pm #17188605

nicolasM-45

It is quite possible that the issue is related, but the problem is poorly described from a technical standpoint. It would be important to confirm whether the bookings are no longer available because WPML creates a duplicate, which has the effect of doubling the actual number of bookings. They can use the following query to check for duplicates:

SELECT wp_posts.ID
FROM wp_posts
JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id
WHERE wp_posts.post_type = 'wc_booking'
AND wp_postmeta.meta_key = '_booking_duplicate_of';

July 3, 2025 at 8:01 am #17195651

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Thanks for your input on this case.

Our developers have fixed this issue, and the fix will be included in the next version of WooCommerce Multilingual & Multicurrency. We will update you here once this version is out.

I appreciate your patience.
Itamar.