Home›Support›English Support›[Resolved] I change default language to my website and now Motopress Availability calendars do not work anymore
[Resolved] I change default language to my website and now Motopress Availability calendars do not work anymore
This thread is resolved. Here is a description of the problem and solution.
Problem: After changing the default language from Italian to English on a bilingual website, the availability calendars stopped functioning. Solution: We recommend two potential solutions: 1) Modify the database: - Access your database manager, such as PhpMyAdmin. - Execute the following SQL query:
SELECT * FROM `wp_postmeta` WHERE `meta_key` LIKE '%room_type_id%'
- Replace the IDs as necessary based on your results. 2) Create new content in the English language: - Develop a new accommodation type for the English version. - Add accommodations and configure rates for this new type. You may need to remove the old Accommodation Types and Rates.
If these steps do not resolve your issue or if the solution seems outdated, 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 the problem persists, please open a new support ticket.
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 developed my website (hidden link) in Italian, then I translated it into English with WPML. I bought a second domain (casaadeleostuni.it) to use one domain per language. As the first domain was .com but written in Italian, I changed the default language to English.
Symptoms:
After changing the default language to English, my availability calendars do not work anymore.
Questions:
Why did changing the default language to English cause the availability calendars to stop working?
How can I fix the availability calendars after changing the default language?
Thanks for your patience. Our 2nd tier support team has found two workarounds for this issue:
1) Database change:
1- Go to your database manager, for example, PhpMyAdmin
2- Run the following query
SELECT * FROM `wp_postmeta` WHERE `meta_key` LIKE '%room_type_id%'
3- The result should be something like this screenshot (hidden link)
4- Replace the 73 with 1098 IDs
5- The new result should be like this (hidden link)
After that, the calendar should work correctly.
2) Create new content:
1- Create a new accommodation type for the English language
2- Create accommodations for that new accommodation type (in the English language)
3- Configure a rate for that new accommodation type (in the English language)
You might need to delete the old Accommodation Types, Rates, etc.
Kindly let me know if one of the above approaches fixes the issue.