Home›Support›English Support›[Resolved] If i switch the language on frontend then I dont see the invoice
[Resolved] If i switch the language on frontend then I dont see the invoice
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is developing a site using the WP Rentals theme with WPML and encounters issues with invoices not displaying correctly when switching languages on the frontend.
Solution: We recommend the following steps: 1. Open the
file. 2. Locate the code snippet around line 48 and replace it with the provided custom code that includes a workaround for WPML. 3. The new code snippet accounts for different translations of the 'Reservation fee' string and modifies the meta query accordingly when WPML is enabled.
After implementing the changes, please check if the invoices display correctly in all languages and get back to us with the results.
Please note that this solution might be outdated or not applicable to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, do not hesitate to open a new support ticket for further assistance.
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.
I am developing and setting up WP Rentals theme with WPML.
I ran into issues for the invoices. If i switch the language on frontend then I dont see the invoice in one language, if i switch back then i will see it.
I spent some time and could not find a solution and this needs to be reported to the compatibility team.
To be able to report the compatibility issues we need to replicate the issue on a clean installation.
I created a clean installation of WordPress, WPML, and all necessary WPML add-ons.
You can access the WordPress dashboard using the link below:
hidden link
Kindly follow the steps below:
- Install WP Rentals theme.
- Install the necessary plugins.
- Try to replicate the issue.
This will help us to report the probable issue to the compatibility team and solve the possible problem faster.
I set up wp rentlals and configured wpml accrdingly to their documentation wpml team gave at hidden link
I was able to recreate the same issue on the WPML test site.
Please log in with the user and navigate to invoices page. If you switch to english language, then you dont see the invoice. Other pages worked in both language, for example: /my-bookings/
The "My Bookings" and "Invoices" page was translated to Finnish with DUPLICATE option.