Skip Navigation

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

Problem:
The client was experiencing an issue where color and image swatches were not synchronizing in the second language, and they had to add the colors and image swatches in English as well.
Solution:
We recommended the following steps to resolve the issue:
1. Navigate to WPML -> Settings -> Custom Term Meta Translation section.
2. Set the fields (color, image, and not_dropdown) to copy.
3. Update the attribute to copy the values.
4. Check the translated product.
We also provided a video to demonstrate the steps (https://files.fm/f/63eahyjht).
These steps were applied to a sandbox site and resolved the issue. We asked the client to check the product on the sandbox site to confirm if the solution works correctly (https://rare-furruco.sandbox.otgs.work/el/product/henectus-tincidunt/).

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues (https://wpml.org/known-issues/), verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, do not hesitate to open a new support ticket for further assistance.

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: 

This topic contains 14 replies, has 2 voices.

Last updated by Effie Kiriazopoulou 2 years, 4 months ago.

Assisted by: Osama Mersal.

Author Posts
February 3, 2022 at 5:25 pm #10502647

Effie Kiriazopoulou

Tell us what you are trying to do?
The color and image swatches do not sync in second language. We had to add the colors and the images swatches in english too.
Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
hidden link

February 6, 2022 at 10:29 am #10517279

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) First of all, sorry for the late reply due to a higher workload. Kindly go to WooCoomece Multilingual-> Status-> Troubleshooting, and run the troubleshooting function. (Kindly check the attached screenshot)

After that, please clear your cache and check the front end. Would you please let me know if these steps helped you fix the issue?

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. Minimum requirements for WPML are 128Mb. (Kindly check this page https://wpml.org/home/minimum-requirements/)

Add this to the top of wp-config.php to increase WP memory:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Thanks for your cooperation and patience

Regards,
Osama

1.jpg
February 7, 2022 at 3:01 pm #10524879

Effie Kiriazopoulou

1. The troubleshooting did not work.
We had to enable swatches in the english version of each term in attributes.

2.We raised the limit to 256M.

February 7, 2022 at 3:10 pm #10525057

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Could you please let me know if the swatches worked correctly after enabling them in English?

If yes, kindly let me know if you need any further assistance.

Thanks,
Osama

February 7, 2022 at 10:00 pm #10528485

Effie Kiriazopoulou

Yes, they worked

February 7, 2022 at 10:02 pm #10528487

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thank you for your update and for sharing your workaround with us.

I really appreciate your cooperation.

Thanks,
Osama

February 8, 2022 at 9:16 am #10531175

Effie Kiriazopoulou

Hi again, it wasn't a workaround. What we enter in greek, should be syncing to the english translation. The swatches (images, colors...) do not display in the english translation. We have to go to each term and enter the image or color and check the box "enable swatches", although they are enabled in greek.

February 8, 2022 at 10:39 am #10532061

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for your update. Could you please log in to this sandbox site and upload your theme? (hidden link)

After that, could you please try to replicate the issue? If the issue is replicable, please let me know how to reproduce it.

The last step would be consulting our compatibility team to check the issue.

I really appreciate your cooperation.

Regards,
Osama

February 9, 2022 at 1:21 am #10536939

Effie Kiriazopoulou

Done. Check the product I prepared in Greek and then check the english version which is set as the default language on the site:
hidden link

February 9, 2022 at 9:51 am #10539733

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for replicating the issue. I've checked the sandbox site and found that the fields are set to not translatable, so I've set them to copy. Kindly check the following steps.

1- Go to WPML-> Settings-> Custom Term Meta Translation section
2- Set the (color, image, and not_dropdown) fields to copy
3- Update the attribute in order to copy the values
4- Check the translated product

Kindly check this video to see the steps. (hidden link)

I've applied these steps to the sandbox site, which fixed the issue. Could you please check the product and let me know if it works correctly? (hidden link)

I hope this helps you. If you need further info, please let me know.

Best regards,
Osama

February 9, 2022 at 11:15 am #10540819

Effie Kiriazopoulou

Hi,
This solved the problem. Thank you very much!

February 9, 2022 at 11:36 am #10541093

Effie Kiriazopoulou

I'm back for one more question. Will the translations added from now on sync automatically or do we need to update each term in english everytime we add a new one?

February 9, 2022 at 11:38 am #10541099

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

After these steps, the terms should be synced automatically. For testing, after the steps, please create a test term and test product to check it.

I recommend testing on the sandbox site not to affect your site.

Regards,
Osama

February 9, 2022 at 11:46 am #10541191

Effie Kiriazopoulou

Yes, it works perfectly well.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.