We have two languages on our site: NL and EN. We have one product which is duplicated to the secondary language (EN).
When my language is set to NL in the CMS and I navigate to the "All bookings" page from WooCommerce Bookings (/wp-admin/edit.php?post_type=wc_booking) from another page in the CMS the bookings page shows all the bookings with links to the WooCommerce order.
When I set the language to EN in the CMS and I navigate to the "All bookings" page I see bookings, but no links to WC orders.
I cannot switch language on the WC Bookings overview page.
When I click on a single booking, for example an English booking, and I switch to the other language, I can see that only the NL booking is linked to the WC order, but the EN copy is not.
This leads to confusion, because sometimes you access the bookings page when your language is set to EN, and sometimes it's set to NL. In both scenario's you see different bookings and in the case of EN you see no links to WC orders.
Thank you for contacting WPML support, I'd be happy to help you on this issue.
The Booking page works like WooCommerce Order (in the admin area), if you switch the language from another page and go back to the booking page, it should display the same order with the translation product. But somehow in your case, it is not.
Please make sure that the booking product is translated completely then follow the steps below to enable the minimal environment to see if it helps.
- Deactivate all plugins except WPML, WooCommerce plugins
- Switch to a standard theme of WordPress (2022)
If it does not help, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info.
I see there are some bookings that have links to the WooCommerce orders when I switch to the English language, it does not disappear then. I've also created a test booking with the product "Reserveren" but still do not see the issue. Please check my screenshot hidden link
Can you please check this issue on your site and see if it works? Or share some screenshots of the issue if it still happens on your end.
Below are the details of a booking made last Tuesday. The time slot of this booking, 20 December at 19:00, is no longer available in the Dutch booking calendar, but is still in the English booking calendar. So this slot can be double booked.
C** van W***
20 December 19:00
Booking number: 70631 / 70633
So I understand the issue with the booking that has a link to the order on the All Bookings page is resolved. Now you have another issue when the time slot is still displayed in the English language even the slot is booked in the Dutch language.
I see that issue and I think there is an issue with WPML database so I deactivate WPML then re-activate it. And go to WPML > Support > Troubleshooting > Click on some buttons:
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Fix WPML tables collation
- Fix post type assignment for translations
Now the time slot 19:00 does not display in the English language. Can you please confirm it works on your side?