Contexte de la question:
I am trying to use WooCommerce Bookings together with WooCommerce Multilingual to display upcoming and past bookings correctly on the 'My Account > Bookings' page. The goal is to show only the bookings in the current language, with proper pagination.
Symptômes:
WooCommerce Bookings fetches all bookings, regardless of language, and applies pagination. Then WooCommerce Multilingual hides bookings that are not in the current language, but only after the bookings have been fetched. This results in an incomplete list of bookings being shown, and no 'Next' button to access additional bookings that were filtered out after the initial query.
Questions:
How can I ensure that only bookings in the current language are fetched and displayed with proper pagination?
I updated the WPML plugins to the latest version, I still have the issue.
For example if I have 4 bookings, with WPML there are duplicated in all languages ( I have 4 different languages).
So by default Woocommerce Bookings will find 16 bookings associated to my user (10 displayed by page).
The Woocommerce multilingual will remove all bookings in the result array that are not in the current language, so 4 remaining bookings.
Some will displayed on the bookings page in "My account", because there were on the first page of results of Woocommerce bookings request. But others will not be displayed because they are considered to be on the second page.
And in the template the "Next" button is not displayed because I don't have more than 10 bookings. So no way to display the bookings supposed to be on the second page.
Sorry for the delayed response. There's been a pretty full queue in the past few days, and fewer people are working on the weekends, so this is why it takes a little bit longer to get back to you than usual.
Because you had a live chat session before, our system automatically removed the credentials you shared for privacy and security reasons.
Can you please share them again in the private fields I am enabling below so that I can also examine the site's backend?
I can confirm that I was able to log in successfully.
I am spending more time on this and will get back to you as soon as I have more feedback. Just so you know, the website loads pretty slow for me, so it might take a while.
I will leave the ticket assigned to myself for now.
There's a high chance that this issue occurs because many of the active plugins are outdated, including WPML plugins (+ the WPML WooCommerce add-on) and the WooCommerce Bookings plugin.
1. Can you please create a full website backup and then update the plugins here: hidden link
2. Please increase MaxInputVars to 50000 or more (you have them set at 1000 at the moment). For this, please try to set these variables in your php.ini: