Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 -
- 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nicolas V. 1 year, 7 months ago.

Assisted by: Nicolas V..

Author Posts
October 23, 2023 at 10:18 am #14636425

nilsN-5

I have an ACF repeater field that I use in a WooCommerce product. However, I can't translate it in the copy of the product.

The same ACF field works on the post type "page".

- I have the WP_MEMORY_LIMIT set to 256 and the PHP memory limit is 512.
- In the WPML settings for the custom fields field I've selected "Translate"
- In the WPML settings on the particular ACF field I've selected "Translate".

Skärmavbild 2023-10-23 kl. 12.16.10.png
Skärmavbild 2023-10-23 kl. 12.16.22.png
Skärmavbild 2023-10-23 kl. 12.16.34.png
Skärmavbild 2023-10-23 kl. 12.16.04.png
October 23, 2023 at 5:36 pm #14640449

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hello,

Welcome to the WPML support forum. When it comes to ACF fields, setting up translation preferences for each field can be tricky. So, let's start by reviewing your configuration:

1. In "WPML > Settings > Post Types Translation" the translation preference for "Field Groups (acf-field-group)" should be "Not translatable".
Ref: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#translating-field-groups

2. Now when you edit your ACF groups in the default language, this is where you determine the translation preference for each field.

- "Copy" or "Copy once" for special fields "Repeater" and "Flexible".
"Copy" is you want the exact same repeaters and structure, else "Copy once"
From the screenshot you sent, it seems that your repeater is set as "Translatable".
- "Translate" for all the fields you want to translate such as texts, WYSIWYG etc...
- Use "Copy" if you don't want to translate the field but keep the same value, for example for colors, true/false, images etc...
Ref: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

- Please change the translation preference of your repeater to "Copy"
- Then go back to the original product and make a small edit (like adding a space at the end of the title" and re-save it. That should be enough to update the translation. Then enter the translation and see if the sub-fields that are set as "Translate" are translatable.

The topic ‘[Closed] Problem with a ACF repeater field in WooCommerce’ is closed to new replies.