Skip Navigation

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

Problem:
If you're experiencing issues with product variations breaking down when adding groups to an attribute using WooCommerce Attribute Swatches by Iconic, you might notice that after editing an existing attribute and adding a group to it, each variation disappears for each translation from the product page. Additionally, the number of terms in the attribute may increase significantly.
Solution:
We recommend following these steps to resolve the issue:
1. Navigate to WPML > Settings.
2. In the "Custom Term Meta Translation" section, set the translation preference for the "iconic_was_term_meta" field to "Copy" and save the changes.
3. From the "Taxonomies Translation" section, change the translation preference for the Attribute (e.g., Product color (pa_color)) to "Translate," allowing the Attribute and its variations to be translated.
4. Go to WooCommerce > WooCommerce Multilingual > Attributes.
5. Select the Attribute from which the variations were created.
6. At the bottom of this section, click on the button labeled "Synchronize attributes and update product variations." This action correctly displays the variations in the product but not in the Group.
7. To display them in the Group, go to Products > Attributes and open the Attribute from which the Variations had been created.
8. Click on 'Quick Edit' below the Term added to the Group and click on the update button without making any changes. This action copies the Groups to the translated term, and as a result, the variations start displaying correctly in the Group on the frontend.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at 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 further assistance is needed, please open a new support ticket at WPML support forum.

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

Last updated by Prosenjit Barman 9 months, 3 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
August 19, 2024 at 2:29 pm #16084323

dawidZ-5

Background of the issue:
I am trying to add groups to an attribute, but it breaks down variants for product translations. Here is the link to the documentation I was following: hidden link

Symptoms:
When I edit the attribute used for variations and add groups to it, the variants for product translations break down.

Questions:
Why does adding groups to an attribute break down variants for product translations?
How can I successfully add groups to an attribute without breaking product translations?

August 20, 2024 at 10:12 am #16086406

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand that the Group feature from "WooCommerce Attribute Swatches by Iconic" is causing issues with the translated product. Could you please share a screenshot of the specific issue you're encountering so I can better understand it? You can also include the link to the product in your next response.

I'll review the details and assist you further. Looking forward to your response.

Best regards,
Prosenjit

August 20, 2024 at 11:29 am #16086783

dawidZ-5

Hi,
after editing an existing attribute and adding a group to it, each variation disappears for each translation from the product page.
(product page screenshot)

I also noticed that normally when editing an attribute there should be 40 terms, but after adding a group to an attribute there are 340 terms.
(attribute terms screenshot)

If you want, I can reproduce this issue on your sandbox site.

product page.jpg
attribute terms.png
August 21, 2024 at 4:43 am #16088638

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the update.

It would be best if you could try to replicate the issue on your sandbox. You can access the sandbox site using the Autologin link provided below.

- hidden link

The WPML plugin and its addons are already installed in the sandbox. Please complete the setup first. After that, install the Attribute Swatch plugin on the sandbox, make the same adjustments you did on your main site, and see if you can replicate the issue.

If you're able to replicate the issue, please share the steps in your next response. I'll review them and advise on the next steps.

Looking forward to your response.

Best regards,
Prosenjit

August 21, 2024 at 10:16 am #16089816

dawidZ-5

Hi,
what I did on the sandbox:

1. create product attribute
2. create a variable product with these attribute
3. edit attribute and add groups

Now the translation for this product does not display any variations

hidden link
hidden link

August 22, 2024 at 4:26 am #16092539

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for replicating the issue in the sandbox.

After modifying the settings for the Group field and Attributes, I successfully resolved the issue in the sandbox. Please check this hidden link">screenshot to see how the variations now appear with the German product.

Here's how I resolved the issue:

1. Navigated to WPML > Settings.
2. In the "Custom Term Meta Translation" section, I set the translation preference for the "iconic_was_term_meta" field to "Copy" and saved the changes.
3. From the "Taxonomies Translation" section, I changed the translation preference for the Attribute (in the sandbox, it was Product color (pa_color)) to "Translate," allowing the Attribute and its variations to be translated.
4. Went to WooCommerce > WooCommerce Multilingual > Attributes.
5. Selected the Attribute from which the variations were created.
6. At the bottom of this section, there's a button labeled "Synchronize attributes and update product variations." I clicked on this to synchronize the Attributes. This action correctly displayed the variations in the product but not in the Group.
7. To display them in the Group, I went to Products > Attributes and opened the Attribute from which the Variations had been created.
8. I clicked on 'Quick Edit' below the Term added to the Group and clicked on the update button without making any changes. This action copied the Groups to the translated term, and as a result, the variations started displaying correctly in the Group on the frontend.

Please apply the adjustments to your site as I described above, and I hope this will help resolve the issue on your site. Feel free to let me know if you need further assistance or clarification. I will be happy to help.

Best regards,
Prosenjit