Skip Navigation

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

Problem:
The client activated WPML plugins on their staging website and encountered issues with translating the 'add to cart' button and 'In stock' text on the product page using Flatsome theme. Despite using WPML > String Translation with the 'Exact match' option, the translations did not apply unless 'Auto Register Strings for translation' was enabled.
Solution:
1. We recommended checking if the string was being overwritten by the theme or another plugin by using WPML > String Translation and searching for the string with the 'Exact match' option. All results should be translated.
2. The client should delete the currently translated string and register it again. We advised enabling 'Auto Register Strings for translation' as per the guide: Enable Auto-Register Strings
3. We identified that some settings from WooCommerce Multilingual & Multi-Currency were overwritten. The client needs to check WPML configuration files added by other plugins or manual settings in the Multilingual Content Setup section.
4. It was necessary to set 'Variations (product_variation)' to 'Translatable - only show translated items' in WPML > Settings > Post Type Translation.
5. The client was also advised to translate their Shop page and products to ensure full functionality in other languages.
6. For custom product layouts using UX Builder, the client needs to translate the layout in UX Blocks.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket.

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

Last updated by nataliaD 6 months, 1 week ago.

Assisted by: Andreas W..

Author Posts
May 11, 2024 at 11:35 am #15616944

nataliaD

Hi I activated WPML plugins on my staging website (copy of productive website) and translation works except (add to cart button and In stock on product page),
I added string translation on woocommerce forms but it doesn't translate, I'm using flatsome as the theme

add_to_cart.png
May 11, 2024 at 12:13 pm #15616969

Andreas W.
Supporter

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

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

Hello,

Did you try at WPML > String Translation to use the text search and search for the string while marking the option "Exact match"?

Then translate all the results, as it could be that the string is overwritten by the theme or another plugin.

If this will not solve the issue, try using the following option:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#enable-auto-register-strings

In case this will still not solve the issue, please let us know and we will take a closer look into it.

Best regards
Andreas

May 11, 2024 at 3:06 pm #15617081

nataliaD

WPML > String Translation to use the text search and search for the string while marking the option "Exact match" --> this was already done but without suscces
If I activate Auto Register Strings for translation the problem is fixed(add to cart and stock) without do nothing, but as soon as I deactivate Auto Register Strings for translation the problem is still present

May 11, 2024 at 3:49 pm #15617117

Andreas W.
Supporter

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

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

Please delete the currently translated string, then register it again using this guide:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#enable-auto-register-strings

Translate the string now again.

If this will not solve the issue, please let me know.

May 18, 2024 at 12:41 pm #15641808

nataliaD

i did as you told me but the problem is still there

May 18, 2024 at 12:45 pm #15641811

Andreas W.
Supporter

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

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

Hello,

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

May 18, 2024 at 1:47 pm #15641884

Andreas W.
Supporter

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

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

I went to WooCommerce > WooCommerce Multilingual & Multi-Currency > Status:

1) Some settings from the WooCommerce Multilingual & Multicurrency wpml-config.xml file have been overwritten.
You should check WPML configuration files added by other plugins or manual settings on the Multilingual Content Setup section.

Custom type product_variation configuration from wpml-config.xml file was altered!

You need to go to WPML > Settings > Post Type Translation and set Variations (product_variation) to "Translatable - only show translated items".

2) WooCommerce store pages do not exist for these languages:
Arabic Arabic
Italian Italian
English English

Please complete the translation jobs for your Shop page, as they are not completed to 100%.

3) Not any of your products are yet translated. You have set WPML > Settings > Post Type Translation > Products to "Translatable use translation if available or fallback to default language" which means that the products displayed in other languages are the original products. This setting is blocked by default and we do not recommend changing it. You need to translate your products.

I created a test product in Arabic and the translation works:
hidden link

4) Your product uses a custom product layout from UX Builder. You need to go to UX Blocks and translate the layout. I also did this for Arabic.

Best regards
Andreas

Captura de pantalla 2024-05-18 084605.png
May 19, 2024 at 12:14 pm #15642648

nataliaD

there is a way to cancel completelly WPML for all languages ?, may if I try to reinstall from stretch i can avoid to translate all products , on the first stage I would like to have translated all buttons and label and after translate also product and pages.
I can also deletevia sql all tables of WPML manually if you provide to me the list
thanks

May 19, 2024 at 10:24 pm #15643133

nataliaD

with reset WPML and restart configuration i fixed the problem