Please make sure to update to WPML 4.3.6 and check our list of Known Issues before reporting

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 35 replies, has 2 voices.

Last updated by Carlos Rojas 2 weeks, 4 days ago.

Assigned support staff: Carlos Rojas.

Author Posts
January 21, 2020 at 8:15 am #5329917

Apulia Vending s.r.l.

Tell us what you are trying to do?
There's the custom post type used for the rooms, and I can't set the prices as not translatable, could you help?

Thanks.

Best regards,
Liborio Fedele

January 22, 2020 at 10:56 am #5339755

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Hello Liborio,
Thank you for contacting WPML support.

To set this custom field to 'Not translatable' you need to:
- Go to WPML -> Settings -> Custom Fields Translation (you might need to click on 'Show system fields' link) -> Search the price field and set it to 'Not translatable' -> Save the changes.

In this link you will find our official documentation on how to translate Custom Fields using WPML: https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

Kind regards,
Carlos

January 23, 2020 at 7:36 am #5345885

Apulia Vending s.r.l.

Hello Carlos,
that's what I already did, but it seems not to work.

Could you help, please?

Thanks in advance.

Kind regards,
Liborio Fedele

January 23, 2020 at 12:00 pm #5348101

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Hi Liborio,

In this case I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Regards,
Carlos

January 23, 2020 at 12:16 pm #5348373

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Hi Liborio,
Thank you very much for the information provided.

I can't see the Room post types. Could you describe the steps to edit one of the rooms prices?

Regards,
Carlos

January 23, 2020 at 12:26 pm #5348529

Apulia Vending s.r.l.

Hi Carlos,
you're welcome.

You can find everything in "Accommodation" and "Hotel booking".
In "Hotel Booking" there are the "Seasons".

You can find he prices filled here.
hidden link

Best regards,
Liborio Fedele

January 23, 2020 at 12:47 pm #5348797

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Hi Liborio,
Thank you for this information.

I followed this steps:
- Edited this accommodation: hidden link
- Accommodation pricing -> General pricing (800.00) -> This custom field can be found in WPML -> Settings -> Custom fields translation -> Named 'shb_pricing' and is set to 'Don't translate'. You can set it to translatable there.

Please let me know if there are any other custom fields you desire to change.
Regards,
Carlos

January 23, 2020 at 12:59 pm #5349069

Apulia Vending s.r.l.

Hi Carlos,
I would like it not to be translatable, in order to set it just once for all the languages.

Could you help, please?

Regards,
Liborio Fedele

January 23, 2020 at 1:09 pm #5349211

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Hi Liborio,

In this case you should set this field to 'Copy'. This way the value will be copied to the secondary language so there will be no need to translate it 🙂

Regards,
Carlos

January 23, 2020 at 1:17 pm #5349259

Apulia Vending s.r.l.

Hi Carlos,
that's what I tried to do but some of them are not copied, you can try using one of the other accommodation.

Moreover the "Accommodation pricing" box is not copied too.

Thanks.

Regards,
Liborio Fedele

January 23, 2020 at 1:30 pm #5349465

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Hi Liborio,

I followed this steps:
- Edited this accommodation in Italian: hidden link
- Activated the translation editor using the option in the Languages block in the right column (only for this accommodation)
- Re-saved the Italian version.
- Translated the accommodation to the "Dummy" language.

Now you can see here that the price is the same: hidden link

Note: When translating from Italian to "Dummy" I just copied the same content over.

Could you confirm that the issue is solved?

Regards,
Carlos

January 23, 2020 at 1:36 pm #5349481

Apulia Vending s.r.l.

Hi Carlos,
thank you for your help. Unfortunately the fields "Minuto occupancy" and "Max occupancy" for both adults and children do not look copied. Moreover the "Accommodation pricing" box with the seasonal pricing has not been copied too.

Regards,
Liborio Fedele

January 23, 2020 at 1:46 pm #5349529

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Hi Liborio,

In the translated version of the accommodation to "Dummy" language, the price was copied correctly. See attached image.

To copy the other two custom fields mentioned in your last message you must follow the same steps.

As an alternative you can create a language translation file following the steps described in this link: https://wpml.org/documentation/support/language-configuration-files/#custom-fields

Best regards,
Carlos

January 23, 2020 at 1:53 pm #5349613

Apulia Vending s.r.l.

Hi Carlos,
thanks. I'm attaching how that box should look like.

Moreover, about those field it looks all already set, there are no more field with "Copy" not checked, but they are not copied yet.

Regards,
Liborio Fedele

January 23, 2020 at 1:57 pm #5349663

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Hi Liborio,

Could explain why do you think this values are not copied? Where are this values missing?
I will appreciate if you could provide some screenshots so I can have a better understanding.

Regards,
Carlos