Home›Support›English Support›[Resolved] Variants Not Selectable on Translated Products: Issue with E-commerce Store
[Resolved] Variants Not Selectable on Translated Products: Issue with E-commerce Store
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate products in your e-commerce store using WPML, but the translated product variants are not selectable, making the products unpurchasable. Solution: 1) Ensure you are using WooCommerce Multilingual and have translated the attributes to the second language from WooCommerce Multilingual > Attributes. More information can be found here: https://wpml.org/documentation/related-projects/woocommerce-multilingual/ 2) At the bottom of the page from WooCommerce Multilingual > Attributes, click the button that synchronizes variations across products. 3) If you are using local attributes, switch to using global attributes. Add global terms to your global furniture attribute and translate them to the second language from the WCML attribute tab. Then, edit your default language product, remove current attributes and variations, and add existing global attributes. Create variations from these and save the product. Translate, and it should work fine.
If this solution does not resolve your issue or seems outdated, we 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 the problem persists, 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.
Background of the issue:
I am trying to translate products in my e-commerce store using WPML. The site I need help with is hidden link. I have customized variants for products, such as spray cans with finishes and other customizations.
Symptoms:
When products are translated, the variants are not selectable, making the products unpurchasable. In the original Italian version, variants can be selected and purchased, but in the translated English version, the variants are not visible.
Questions:
How can I make the translated product variants selectable?
Is there a specific setting in WPML that I need to adjust for custom variants?
1) In order to expedite handling your support requests, can you please share WPML support debug information from your site.
- To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page. - Once on the “debug information” page, select the entire content of the text box and copy it. - Now go back to our support forum, find debug information box and paste it.
More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/
2) Make sure you using WooCommerce Multilingual and have translated attributes to 2nd language from WooCommerce Multilingual > Attributes
have you added this attribute as global from Product > Attributes or as local attribute from that product screen?
If as local, please add it as global attribute, go to Product > Attributes create your new attribute and variations. Translate them from Wocommerce Multignual. Go to your default language product and add your new global attribute that you just created. Save and translate product.
- Please backup the site files and database before providing us access.
- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.
1) I see you have not translated your attributes, please translate them all to 2nd language:
- hidden link
2) I do not see the produce with the issue you shared, please share the URL with me with a product that has this issue and uses a global attribute that is translated correctly.
1) i don't know what screen shot you see. i see this (attached file), i need to translate ‘finish’ or ‘finitura’ and i don't see any variant, i don't understand what you mean i need to translate. the other attributes (apart from colour) are to be deleted, they are the default ones of the theme. Can you send me a screenshot with the elements to be translated circled? Thank you very much
Can you please do that and it should work fine. So the steps are:
1) Add global terms to your global furniture attribute:
- hidden link
- hidden link
2) Translate them to 2nd language from WCML attribute tab:
- hidden link
3) Edit your default language product, remove current attributes and variations and click add existing. Search for your global one, select it and select existing terms. Create variations from them and save product. Translate, and it should work fine.