WPML
Status
Resolved
Reported for
WPML Multilingual & Multicurrency for WooCommerce 5.5.1
Resolved in
WooCommerce Multilingual & Multicurrency 5.5.2
Related plugin/theme
WooCommerce Bookings
Topic tags
Compatibility, WCML

Overview of the issue

When using WooCommerce Bookings with WPML, reserved time slots made in one language may not be consistently blocked in the end time dropdown when viewed in a different language. This inconsistency affects the accuracy of booking availability across translations.

Workaround

Please, make sure of having a full site backup of your site before proceeding.


  • Open the …/wp-content/plugins/woocommerce-multilingual/compatibility/WcBookings/class-wcml-bookings.php file.

  • Look for line 1022.

  • Replace:
    $wc_booking_lang = $wc_booking_lang ?: $default_language;
            


  • With:
    $wc_booking_lang = $wc_booking_lang ?: ( $language_code ?: $default_language );
            

All known issues →