[Resolved] Badges not showing on translated products
This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported that badges from Yith Badge Management were not displaying on their multilingual website in languages other than the default English.
Solution: We advised the client to duplicate the badge for each language they are using on their website. This can be done by accessing the badge edit page, selecting the desired language, and clicking on the "duplicate" button. This process is outlined in the Yith documentation, which can be found here: Yith Badge Management and WPML documentation.
If this solution does not apply to your situation, or if it seems outdated, we recommend opening a new support ticket. We also 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.
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.
On our website nordictemptations.com the badges from Yith Badge Management are not showing on the other languages apart from English which is the default. This plugin should be compatible with WPML, strings are translated and all WPML plugins are up to date.
Can you please help? Thank you in advance
For the time being I'm using the free version of this plugin and tested with only one badge. But will update to premium as soon as this problem is solved.
Link to the site and product concerned: hidden link
Thank you for contacting WPML support, I’m happy to help you with this issue.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.
❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.
I found a way to show the badge on the translation product, please follow steps below:
1. Go to WPML > Settings > Custom Fields Translation > Click on Show system fields > Search for the field "_yith_wcbm_badge_ids" and set it to Copy > Save changes.
2. Go to WPML > Settings > Post Types Translation > Set the post type "Badges (yith-wcbm-badge)" preference to "Translatable - Only show translated items" > Save changes.
3. Go to Yith > Badge Management > Edit a badge and translate it into second languages like posts, pages ...
4. Edit the product > Click on Update to sync the badge from the original to translation product.
So sorry, was too quick with this also.
I got the badge to show on the product. But when I try to assign the same badge to another product it doesn't show on the translated version. I have updated the product, even updated the translations, without success. I'm talking about this product: hidden link I haven't updated the staging site yet, please let me know if you want me to do so.
I see the issue on your staging site. The solution above works with the free version of Yith Badge plugin but doesn't work with the premium version.
It could be a compatibility issue with WPML. Can you please help me replicate the issue on a clean installation of WordPress so I can escalate this to our compatibility team? You can access the admin area with this link. hidden link