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.

Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
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)

Tagged: ,

This topic contains 23 replies, has 5 voices.

Last updated by Itamar 9 months, 2 weeks ago.

Assisted by: Itamar.

Author Posts
July 10, 2024 at 9:22 am #15926934

viktorO

Nope, setting wc_booking post type as Not Translatable does not change anything.

screenshot 3.jpg
screenshot 2.jpg
July 11, 2024 at 6:44 am #15932725

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

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

Hi,

Thanks for letting us know about it. Setting the wc_booking post type as Not Translatable indeed will not affect the previous bookings.

Regards,
Itamar.

July 11, 2024 at 8:44 am #15933554

viktorO

@Itamar
Well, I did test after setting wc_bookings as Not Translatable.

One more thing, I also made a separate language products (ENG and RUS) without translation and again the Bookings list looks very strange - each language product without translation has a dummy duplicate record in other language.

Please check.

screenshot 4.jpg
July 11, 2024 at 1:40 pm #15935550

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

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

Hi,

I want to remind you of the following.

We are dealing with the "Incorrect booking stats" issue in this ticket. We have escalated the issue to our developers. We will update you once we have news regarding this issue.

We also have the following known issue, which has also been escalated to our developers: "The booking is added times the number of languages to Google Calendar." I mentioned it in my first reply to you on this thread.

https://wpml.org/forums/topic/multilingual-multicurrency-duplicates-bookings-in-woocommerce-bookings/#post-15841359

We cannot add new issues to this ticket, as it has been escalated to our developers. If you believe that the last issue you found is new, please open a new ticket about it.

Thanks,
Itamar.

July 12, 2024 at 9:12 pm #15944609

viktorO

Thanks. Clear.

On live site the provided snippet does not work with following errors:

[12-Jul-2024 21:06:08 UTC] WordPress database error Unknown column 'translations.source_language_code' in 'where clause' for query SELECT COUNT(DISTINCT wcbookings.ID) AS count
FROM wp_posts AS wcbookings
INNER JOIN wp_posts AS wcorder
ON wcbookings.post_parent = wcorder.ID
WHERE wcorder.post_type IN ( 'shop_order' )
AND wcbookings.post_type IN ( 'wc_booking' )
AND wcorder.post_status IN ( 'wc-completed', 'wc-processing', 'wc-on-hold', 'wc-refunded' )
AND wcorder.post_date >= '2024-07-01'
AND wcorder.post_date < '2024-07-13 07:06:08' AND translations.source_language_code IS NULL made by wp_dashboard, do_meta_boxes, WC_Admin_Dashboard->status_widget, do_action('woocommerce_after_dashboard_status_widget'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Bookings_Report_Dashboard::add_stats_to_dashboard
[12-Jul-2024 21:06:08 UTC] WordPress database error Unknown column 'translations.source_language_code' in 'where clause' for query SELECT COUNT(DISTINCT wcbookings.ID) AS count
FROM wp_posts AS wcbookings
WHERE wcbookings.post_type IN ( 'wc_booking' )
AND wcbookings.post_status = 'pending-confirmation' AND translations.source_language_code IS NULL made by wp_dashboard, do_meta_boxes, WC_Admin_Dashboard->status_widget, do_action('woocommerce_after_dashboard_status_widget'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Bookings_Report_Dashboard::add_stats_to_dashboard

screenshot.jpg
screenshot 1.jpg
July 14, 2024 at 5:29 pm #15950581

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

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

Thanks.

I've shared this with our second-tier supporter and am waiting to hear what he has to say about those errors.

I appreciate your patience.
Itamar.

July 16, 2024 at 6:46 am #15958377

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

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

Hi,

Our second-tier supporter asked you to check if you copied the code snippet for the workaround 1:1. He added that according to the error, it seems to be missing the inner join with the icl_translations table. Otherwise, please wait for a permanent fix.

The issue is still being escalated to our developers.

Regards,
Itamar.

July 17, 2024 at 11:17 am #15965795

viktorO

I copied the code 1:1. And tried again 1:1. Same error.
Ok, will wait for a fix.

July 18, 2024 at 8:56 am #15971042

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

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

Hi,

Thanks for the update.

I appreciate your patience.

Regards,
Itamar.