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.
Tagged: Not WPML issue
This topic contains 3 replies, has 0 voices.
Last updated by Paweł Halicki 3 weeks, 4 days ago.
Assisted by: Paweł Halicki.
| Author | Posts |
|---|---|
| March 24, 2026 at 4:32 pm #17923413 | |
|
seyit gunes |
Hello, I used WPML automatic translation to translate my website, but some taxonomies and string translations became mixed up. Taxonomies that were supposed to be in English started appearing in Turkish, and Turkish ones began appearing in English. Some products were not translated at all. Additionally, among the translated ones, certain variations and attributes became misaligned. Extra tabs within products were appearing in English categories where I had specifically disabled them. In the Shoes category, the size chart links disappeared from the product pages. For products with color variations, the color comparison feature was lost. I managed to partially fix it, but when I set images as swatches, it still does not work efficiently. I reset the database and reinstalled everything. I also reset the translations. Then I duplicated all taxonomies, menus, tabs, products, and pages, and manually reviewed and translated everything from scratch. Some plugins are still slightly problematic, but I have accepted those issues for now. I believe these problems can be observed in the logs and database records. I didn't take any screenshots during the period when the errors occurred. I apologize for that. However, I am sending you a screenshot of a minor problem that is still happening. Thank you. |
| March 25, 2026 at 5:47 pm #17927256 | |
|
Paweł Halicki Supporter |
Hello, Thank you very much for creating the forum thread. I’ve linked it with the email conversation so I have full visibility of everything. I went ahead and installed Duplicator plugin to create a copy of the environment to work on (I understand that you prefer the provided environment to be used in “read-only” mode). I was able to create a duplicate and restore it locally. I’ve also deactivated Duplicator on your environment. I will first focus on investigating the issue you described here, specifically the display/translation of color options for this product. Once I resolve that, I will try to reproduce the “installation and automatic translation” process on this environment to diagnose the issues you mentioned. For now, I would kindly ask you to change the password for the account that was shared with us, for security reasons — the local copy should be sufficient for our work. Best regards, |
| March 26, 2026 at 6:48 pm #17930483 | |
|
Paweł Halicki Supporter |
Hello, I’ve completed a preliminary analysis. I noticed you’re using WooCommerce version 10.4.3, which is quite outdated (the current version is 10.6.x). My question is: are you able to perform an update, or is there something preventing you? The newer versions provide much better compatibility, both in product management and during installation/configuration. The issue you reported seems to originate from the `wcboost-variation-swatches` plugin. I’ll check the situation in detail and provide possible solutions. Best regards, |
| April 3, 2026 at 6:59 pm #17948459 | |
|
Paweł Halicki Supporter |
Hello, I’ve prepared a patch that should resolve the reported issue with images not displaying in translated products. Please create the file `wp-content/mu-plugins/wpmlvip-317.php` and place the following content inside: <?php
// wp-content/mu-plugins/wpmlvip-317.php
use WCBoost\VariationSwatches\Helper;
add_filter( 'wcboost_variation_swatches_attribute_swatches_data', function ( $data, $term, $args ) {
if ( empty( $data['value'] ) ) {
$translated_term_id = apply_filters(
'wpml_object_id',
$term->term_id,
$term->taxonomy,
true,
'tr'
);
$image_id = $args['swatches_attributes'][ $translated_term_id ]['image'] ?? 0;
if ( $image_id ) {
$dimension = ! empty( $args['swatches_image_size'] ) ? array_values( $args['swatches_image_size'] ) : 'thumbnail';
$image = Helper::get_image( $image_id, $dimension, false );
if ( ! empty( $image[0] ) ) {
$data['value'] = $image_id;
$data['image_src'] = $image[0];
}
}
}
return $data;
}, 10, 3 );
Please let me know if this resolves the issue. Best regards, |
