Home›Support›English Support›[Resolved] Multilingual booking setup with WPML + WooCommerce + MotoPress (calendar blocked in translated versi...
[Resolved] Multilingual booking setup with WPML + WooCommerce + MotoPress (calendar blocked in translated versi...
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is building a multilingual booking website using WPML, WooCommerce, and MotoPress Hotel Booking. The availability calendars in translated versions of the site often appear fully blocked, even though they display correctly in Spanish. This issue arises when Rates (mphb_rate) and Seasons (mphb_season) are set as 'Translatable'.
Solution: We reviewed the client's website and a test site to compare settings. We noticed discrepancies in the post type and custom field translation settings. We adjusted these settings to their correct configuration and advised the client not to change these settings further. We instructed the client to delete any duplicated translations for 'Accommodations' and 'Seasons', keeping only the content in the default language. After these adjustments, we asked the client to ensure that rates are translated and active for each language. Finally, we verified that the calendars displayed correctly in multiple languages.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at WPML support forum.
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.
Background of the issue:
I’m building a multilingual booking website with WPML, WooCommerce, and MotoPress Hotel Booking. The default language is Spanish, and I’ve already translated most of the site into EN, FR, NL, PL, RU, and DE. The site I need help with is hidden link.
Symptoms:
In translated versions of the site, the availability calendars often appear fully blocked (all dates crossed out), even though they display correctly in Spanish. This issue occurs when Rates (mphb_rate) and Seasons (mphb_season) are set as 'Translatable'.
Questions:
Could you confirm the best practice for handling MotoPress Hotel Booking rates and seasons with WPML?
Should rates and seasons be shared across all languages, or duplicated and translated per language?
I already did that, but I can't fix it. Now I can see the calendars, but all the rates are still translated as shown in the image I shared with you, and then I get an error page instead of the WooCommerce payment gateway.
I’ve reviewed both the sandbox and your website configuration. I noticed differences in the post type and custom field translation settings. These have been switched back and forth, and currently they don’t fully match the defaults. The setup is a bit messy and will likely need some time to be properly cleaned up in order to work correctly.
I’ve now adjusted the settings to the correct configuration. Please do not change the translation settings for post types or custom fields anymore.
As the next step, please go to the following two links and delete any duplicated translations, keeping only the content in the default language:
Hello, good morning. Yesterday I managed to solve it. The calendars were working, as was the checkout page, but now the calendars aren't working. All available dates are showing up.
All calendars are listed as fully available, but this is not the case. Please fix this because until last night the site was working fine. I just had to replace some links to internal translated pages, which WPML did automatically.
I was not aware of this. After your reply, I continued and restored the correct settings that had been changed by you.
Unfortunately, I cannot revert them now, as those settings are not recommended. I need to proceed with the default configuration and attempt to resolve the issue. If it turns out to be a bug, I will escalate it further.
So, please let’s continue in one of these two ways:
1) You restore backup or repeat the same changes you made before and try to make it work on your own without our support, or
2) Please do not revert the settings I have configured, as they are the default and recommended ones. Instead, follow my previous suggestion so we can continue troubleshooting the issue that way.
I checked but I still same and some other things you have deleted.
As mentioned in my reply, you need to delete translation you have made before for:
- Accommodations hidden link
- Season hidden link
There are likes Студия с балконом 1, Septiembre etc. Thos are that you made once these are translatable, that is not correct, they should be only default languages for mentioned above.
Once you deleted those, make sure to translate Accommodation Types
I have translated what you requested again, removing the translated apartment types, but I do not have translations for seasons. I am attaching an image.