Skip Navigation

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

Problem:
The client is unable to see variables from the default language for additional languages when adding a new product on their WooCommerce site. Even after attempting to fix translated variations relationships, the issue persists as the count remains unchanged upon page refresh.
Solution:
We recommend changing the Translation Option for

product_variation

in WPML > Settings > Post Types Translation > Variations to 'Translatable - only show translated items'. This setting adjustment should allow the product variables like 'XL' to appear in all languages. If you're experiencing this issue, try applying this setting and verify if the problem resolves.

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 problem persists, please open a new support ticket at WPML support forum 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 0 reply, has 0 voices.

Last updated by Jamie Davidson 1 month, 1 week ago.

Assisted by: Kor.

Author Posts
April 17, 2025 at 6:44 pm #16945633

Jamie Davidson

<b>Background of the issue: </b>
I am trying to add a new product on my site hidden link and select an already created variable, such as XL, but it does not show for the additional languages.

<b>Symptoms: </b>
Variables from the default language are not showing for the additional languages.

<b>Questions: </b>
Why are the variables not showing for additional languages when I add a new product?
How can I ensure that product variables like XL appear in all languages?

"Fix translated variations relationships 484 left" processes but then on a page refresh it shows as 484 left each time as well.

April 18, 2025 at 8:29 am #16946594

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. I have your login credentials from our chat and I will check and revert back to you as quickly as possible.

April 18, 2025 at 5:44 pm #16947962

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. I've checked your translated page here hidden link in English and I'm able to select the XL size from the dropdown menu. May I know which product you are referring to?

Screenshot_57.jpg
April 18, 2025 at 5:53 pm #16947980

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I only have access to your production site. Could you share the access for your test site again?

April 21, 2025 at 7:33 am #16950928

Jamie Davidson

Hi. Hope you had a good weekend. How are things looking on this ticket? Are you able to login ok to the TEST site and check the issue? Thanks

April 21, 2025 at 8:16 am #16951151

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. I apologize for the delays. I'm checking on this now and will come back to you shortly.

April 21, 2025 at 8:23 am #16951176

Jamie Davidson

Sounds good, thank you.

After continuing to test I have found that manually "Duplicating" the product after publishing it successfully creates the English version. The issues appears when pressing "Translate" to translate the product, the attributes do not appear, which for this website we do not necessarily need.

Is it possible to automate the "Duplicating" of the product? We had custom code within the theme to do this previously, but it stopped working since the recent update to the plugin.

Or is this possible within a WPML setting?

Thanks

April 21, 2025 at 8:57 am #16951294

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I've checked and it seems to work fine now when I changed the Translation Option for "product_variation" in WPML > Settings > Post Types Translation > Variations to Translatable - only show translated items as shown in the attached screenshot. Could you give it another try? here is my test page hidden link

Screenshot_67.jpg
April 21, 2025 at 10:01 am #16951466

Jamie Davidson

Thank you. That looks to be working.

However, the goal here is to show the product variables/attributes regardless of translated or not. When a product is published, the translated version, in this case in English, should show the variables/attributes even if they are not translated. The customer is using WPML mainly for the basket, checkout and my account pages.

"Duplicating" seems to be working as expected on the LIVE website. See my previous reply.

How can we automate "Duplicating" the product each time?
or
Ensure variables/attributes show without a translation for all published products?

Thanks

April 21, 2025 at 10:09 am #16951503

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Duplicating the product for the secondary language will display the same content on the frontend. If this method works for you, try duplicating your products using the Translation Management. WPML > Translation Management.

But the correct way to translate a product would be to use the option that I mentioned above.

April 21, 2025 at 10:12 am #16951505

Jamie Davidson

Thank you. To clarify, you mean the correct way to translate a product would be to translate all parts of it e.g. variables/attributes, header, description etc?

Do you have an automated way to "Duplicating" each product though? Or is this process manual?

April 21, 2025 at 10:15 am #16951506

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Yes, that's correct, you can refer to the instructions here https://wpml.org/documentation/related-projects/woocommerce-multilingual/#translate-and-synchronize-global-attributes . As for the duplication, it has to be done manually.

April 21, 2025 at 10:24 am #16951511

Jamie Davidson

Understood, thank you.

If we wanted to automate this, what would be the best approach to do this? Do you have any documentation on this? We had custom code in place which has since stopped working. Do you have any resources on this subject?

Thanks a lot for the clarifications above.

April 21, 2025 at 10:26 am #16951513

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. This will require custom programming work, which is beyond the scope of our support.

At this point, I would suggest you consider contacting one of our certified partners from this link: http://wpml.org/documentation/support/wpml-contractors/

Before doing so please have a look also here:
http://wpml.org/documentation/support/wpml-contractors/guidelines-for-people-looking-for-consulting-help/

You will get the custom assistance you need to get on with your project.

April 21, 2025 at 10:27 am #16951545

Jamie Davidson

Great! Thank you for all the help. Cheers, and have a good day