Skip Navigation

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

Problem:
If you're unable to find the right string to translate the WooCommerce / Avada 'Out of Stock' badge on your product pages,
Solution:
We recommend you try the following steps:
- Navigate to WPML -> String Translation and click on 'Translate texts in admin screens »'.
- Search for 'Out of Stock'.
- Select and add to the string translation the following strings:

admin_texts_fusion_options_sv
admin_texts_fusion_options_fi
admin_texts_fusion_options_fr

- Return to WPML -> String Translation and search for 'out of stock'.
- Translate the newly added strings.

After completing these steps, the 'Out of Stock' badge should display correctly translated in all secondary languages.

Please note that the solution provided might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket with us.

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

Last updated by Mateus Getulio 1 year ago.

Assisted by: Mateus Getulio.

Author Posts
April 5, 2024 at 10:49 am #15487506

joonaP

I haven't been able to find the right string to translate the woocommerce / avada "out of stock" badge.

You can see the issue on this page hidden link

April 5, 2024 at 8:20 pm #15489766

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Please go to WPML -> String Translation and enable the option "Look for strings while pages are rendered", then visit the page in which the badge is located and go back to the String Translation, refresh the page and check if you'll be able to locate the out of stock string now. (Please don't forget to uncheck the option "Look for strings while pages are rendered" once you're done). Translate the string and see if it gets the issue fixed.

If the issue persists, 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.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

April 8, 2024 at 12:43 pm #15494163

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Thank you for sharing that access.

I was able to locate, include and translate that string by following the steps:

- Go to WPML -> String Translation and click on 'Translate texts in admin screens »'
- Search for 'Out of stock'
- Select and add to the string translation the following strings: admin_texts_fusion_options_sv, admin_texts_fusion_options_fi and admin_texts_fusion_options_fr
- Go to WPML -> String Translation and search for out of stock
- Translate the new added strings

Now when I check the secondary languages, the badge show properly translated in all of them.

Please check it and let us know.

Mateus

April 8, 2024 at 4:03 pm #15495467

joonaP

Thank you, seems to work!