Skip Navigation

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

Problem:
The images added with the "Coming Soon Badge" plugin can't be translated with WPML Media Translation.
Solution:
We recommend switching to the text badge instead of the image badge then trying the following steps after ensuring you have a full backup of your site:
1. Navigate to WooCommerce > Coming Soon config.
2. Change to the text badge for the loop and product page.
3. Translate the text in WPML > String Translation.
4. Edit the file /wp-content/plugins/coming-soon-for-woocommerce/coming-soon-for-woocommerce.php.
5. Replace the code at line 945 from:

$Coming_Soon_WC = new Coming_Soon_WC();

to:

add_action('plugins_loaded', function () {
	$Coming_Soon_WC = new Coming_Soon_WC();
}, 999);

This should resolve the issue for the text badge. You can also suggest to the plugin authors to join our Go Global program to ensure better compatibility.

Please note that this solution might be 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.

Our next available supporter will start replying to tickets in about 3.45 hours from now. Thank you for your understanding.

This topic contains 3 replies, has 2 voices.

Last updated by Mohamed Sayed 9 months, 3 weeks ago.

Assisted by: Mohamed Sayed.

Author Posts
January 24, 2024 at 4:57 pm #15222993

dawoodH

Hello, thanks for your help! I've put the updated images in Media Translation but the images don't update in the translated versions of the website, is that a problem related to the "Coming Soon Badge" plugin? And is there a way to fix it?

January 24, 2024 at 6:10 pm #15223251

Mohamed Sayed

I checked the plugin but I couldn't find more clues, the custom image/text can be translated in Media Translation and String Translation but not on the front end.

I'm consulting our 2nd tier support team about this issue and will update you once I get their reply.

Please note that the "Coming Soon Badge for WooCommerce" plugin is not listed on the WPML compatibility list for the plugins - https://wpml.org/plugin/. This means that our compatibility team has not tested it, so it could be a compatibility issue.

I suggest contacting the plugin author and asking them to join our Go Global program so our compatibility team can work with them to make the plugin compatible with WPML, they can join at this link: https://wpml.org/documentation/support/go-global-program/

Kind regards,
Mohamed

January 24, 2024 at 6:19 pm #15223259

dawoodH

Hello, I understand. Let me know once the support team has any updates 🙂 I will try to contact the plugin author in the meantime. Thank you

January 28, 2024 at 10:21 am #15233846

Mohamed Sayed

Thanks for your patience!

Our developers found that it's a compatibility issue and suggested a workaround for the text badge, please try the following steps after creating a full backup:

1. Go to WooCommerce > Coming Soon config
2. Switch to the text badge for the loop and product page
3. Translate the text in WPML > String Translation
4. Edit the file /wp-content/plugins/coming-soon-for-woocommerce/coming-soon-for-woocommerce.php
5. Replace the following code (line 945):

$Coming_Soon_WC = new Coming_Soon_WC();

With the following:

add_action('plugins_loaded', function () {
	$Coming_Soon_WC = new Coming_Soon_WC();
}, 999);

This will fix the issue for the text badge as you can see on our sandbox site here: hidden link

You can share this with the plugin authors and urge them to join our Go Global program.

Kind regards,
Mohamed

Screenshot_598.png
Screenshot_599.png
Screenshot_600.png