Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with incorrect display of booking price information in different languages on their website. The text 'per night' is showing incorrectly in Italian, French, and German, despite being correct in English and Dutch.
Solution:
We recommend checking the booking settings in the backend of your WordPress site. Specifically, you should open the translated booking listings in the WordPress Editor and ensure the settings are correct. To ensure these settings are correctly copied to all translations, go to WPML > Settings > Custom Fields Translation and set the relevant fields to "copy". After adjusting these settings, re-translate your booking posts.
For detailed guidance on translating custom fields, visit: Translating Custom Fields
If you need to translate specific booking option texts, use the WPML > String Translation tool. For more information, check out: String Translation
If these steps do not resolve the issue, we are available to further assist. Please provide temporary access to your site by following the instructions provided in our support forum, and ensure you back up your site before providing access.

Please note that this solution might be outdated or not applicable to your specific 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 the issue persists, please open a new support ticket with us 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.

This topic contains 6 replies, has 2 voices.

Last updated by Andreas W. 6 months ago.

Assisted by: Andreas W..

Author Posts
June 1, 2024 at 12:29 pm #15694607

marcoM-185

Tell us what you are trying to do?

Is therethis issue was already fixed in a different
support ticket but cannot find the solution

the string for per night seamed to be weong and desperate cannot find where this string is located, as i jave 5 languages and 3 are wrong

i open ticket with the same previous solved header

June 1, 2024 at 3:27 pm #15694773

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

All your tickets can be found here:
https://wpml.org/forums/users/marcom-185/

I do sadly not see a ticket with a similar title.

Could you please provide me with more details about the string that you are trying to translate and send me a link to the frontend of your website, where I can see the issue?

It would also be helpful if you could send us the WPML information for troubleshooting.
More information about this here:
https://wpml.org/de/faq/provide-debug-information-faster-support/

Best regards
Andreas

June 1, 2024 at 4:42 pm #15694879

marcoM-185

Ok here it is
I found a ticket with the same issue i have
screenshot

when guest book and confirm a booking in English
i get screenshot 1 english dutch it shows price total for selected amount of nghts
if same use a different language it shows a wrong translation
screenshot 2 italian or frensh german it shows the price total but put the text PER night in other languages

the String is a shortcut or anything else that should be called maybe
price Whether to display price of the accommodation type.

Values: true | false (yes,1,on | no,0,off)

Default: true

but cannot find it

this confuse the guest that book and will just leave my pages

Screenshot 2024-06-01 184436.png
Screenshot 1.png
2.png
June 1, 2024 at 4:43 pm #15694922

marcoM-185

WPML SUPPORT LOG attached as PNG (remove.png ) file Just rename it as TXT to read it

wpmlog.txt.PNG
June 2, 2024 at 2:41 am #15695101

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please revise your booking posts on the backend. The issue is possibly related to one of the bookings settings, on this case, "for 4 nights" or "per night".

A quick fix would be to open the translated listing inside the WordPress Editor and set the correct setting.

WPML can copy such settings to the translated post when translating with the WPML Translation Editor, but you first need to set the custom field to "copy".

Go to WPML > Settings > Custom Fields Translation and search for a field that relates to the booking price or other booking details. Set all matching fields to "copy".

Then translate your booking again.

Guide:
https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

In case you need to translate the text of one of the booking options, you would use WPML > String Translation for this purpose:
https://wpml.org/documentation/getting-started-guide/string-translation/

Let me know if further assistance will be needed, and I can offer to have a look at your website.

Take kindly note, that I am not working on Sundays and Mondays.

Best regards
Andreas

June 2, 2024 at 9:43 am #15695315

marcoM-185

I followed all steps
I cannot fix it

currently I have Disabled on all Pages and Languages the option that Motopress use as Search Result and Booking Form
there is no other option for the moment

as mentioned before in EN and LU it shows on both Pages ok
in DE FR IT it shows wrongly

As Motopress support is closed and till today not have solved any issues (still waiting for them to reply) I was hoping this could be looked by WPML Support

It looks like the Search and Booking Form has all set correctly it is just strange that in those language where it works the total cost shows as info per night as selected in the form and other do not show the number of nights

I prefer to have for all languages the english translation original as that would fix all

Screenshot 2024-06-02 113312.png
June 4, 2024 at 9:10 am #15700563

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

My apologies for the delay in answering, as Sundays and Mondays are my non-working days.

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

June 7, 2024 at 4:54 pm #15717544

marcoM-185

hello motopress support di fix my issue today

thank you