You can translate Product Add-Ons Ultimate groups and fields using WPML. This article assumes you have WPML installed and you have some familiarity with it.
Translating product add-on groups and fields with WPML
Let’s walk through an example using English and French as our site’s languages.
First, we’ve already installed and configured WPML. Follow the steps here for more guidance.
We’ve set our default language to English with French as the second site language.
Create a product and add-ons
Now, create a product in English (or whatever your site’s primary language is). Add all your standard product information, like description, price and categories.
Then you can define your add-on fields. Follow the steps here to create your first add-on group and field.
Save or publish your product.
Translate the product and add-ons
Now you can translate the product and its extra fields. Click the ‘+’ icon in the ‘Language’ section.
WPML will create a new version of the product in your selected language, copying much of the product information, like price.
To add your translated field, go to the Product Add-Ons tab in the Product data section and add the translated versions of your extra fields.
Translating global add-ons with WPML
Global groups work slightly differently in Product Add-Ons Ultimate. By default, they are displayed on a single page and are not translatable.
In order to make your global groups translatable, you need to apply the snippet here. This will display global groups like any other post type.
You can then go to Product Add-Ons > Global Groups and add a new global group.
Enter your group details, like title and description, then set which products the group will be displayed on. There’s more information on creating global groups here.
Once you’ve set the group details, add your fields. Here’s a screenshot of an example group:
Note that ‘Make Groups translatable’ should be selected in ‘Multilingual Content Setup’.
Translating global groups
You can then create a translated version of your global group by clicking the ‘+’ icon in the ‘Language’ section.
You can then enter the translated version of the group details and add new fields for the translated product.