This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to save a product bundle in a translation on your WooCommerce site using WPML, but the bundled products are not being saved, resulting in translations without options on the frontend.
Solution:
1. Ensure that at least one variation in a variable product has a price set, as this is a WooCommerce requirement.
2. Set the translation option for composites, bundles, and variable products to 'Translatable - xxxxxxxxx' in WPML -> Settings -> Post Types Translations. Similarly, adjust the 'Taxonomies Translation' settings.
3. The 'Variation Swatches for WooCommerce' plugin (by Emran Ahmed) is not compatible with WPML. If variation images do not appear in translated versions, consider contacting the plugin author or using an alternative compatible plugin. For more information, you can search in our forums.
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.
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'm trying to save a product bundle in a translation on my site, hidden link, using WPML.
Symptoms:
The bundled product/products chosen do not appear to be saved, resulting in translations without options on the frontend.
Questions:
Why are the bundled products not saving in the translation?
How can I ensure that the product bundle options appear in the translated version?
Before proceeding further I'll recommend you to fix “WP Memory Limit” to at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set this in your wp-config.php file by adding following code:
Increasing WP Memory helps improve the performance.
And then try the following steps:
1) Take a full backup of your site and database before proceeding. It is highly advised to try these on a dev or staging site first, so your live site isn't compromised.
2) Deactivate all plugins except WPML, String Translation, WCML and WooCommerce.
3) Switch to a standard theme like 2024 or 2021.
4) Check for the issue if it still happens.
5) Then start activating plugins one by one while keep checking for the issue. This way you 'll be able to pinpoint a conflict when & where it starts creating the problem.
6) If after activating all plugins you see that it still works fine, then switch to your theme and see if that's causing it.
Please let me know your findings and I'll try my best to help you further.
I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.
Your next answer will be private, to share this information safely.
Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend.
IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.
Thank you for the access, I checked for the bundled products issue and this needs more time for investigation. I've deactivated unnecessary plugins and have switched to default WordPress theme (since your theme isn't WPML compatible, as well as, child them is heavily customized), we need to ensure if issue is really coming from WPML.
So far I can see the products translated well, except, that the composite products, with reference to bundled products, have some products with 0 (zero) price, which is not allowed by WC (i.e. see German translation of Bulk Distance in the frontend). I've tried setting price for Bottom Color variations to 1, while there are several other color types involved, each having several variations.
It requires some time to investigate the issue in more detail. I'm just closing my day and 'll be able to resume on Monday. I'll update you accordingly.
I've tested thoroughly and the previously mentioned 0 price variation issue, is actually not an issue but a WC requirement. So one of the variation in a variable product, must have a price set (even it is set to 1).
As long as the translations of the translations of composites, bundles and variable products are concerned, you can set these to fallback mode (Translatable - use translation if available or fallback to default language) in WPML -> Settings -> Post Types Translations. The same goes for "Taxonomies Translation" in WPML -> Settings. I've tested by setting pa_color (taxonomy) and product_variations (post type) and these work fine.
This depends on your choice, either you want to show only translated items, then you need to add translations, or if you don't want to translate.
About the "Variation Swatches for WooCommerce" (plugin by Emran Ahmed), this plugin isn't WPML compatible. I see that in translated versions, variation images do not appear. For this matter, please check with the plugin author for proper support. Or you can use an alternative but compatible plugin. For more information you can hidden link">search in our forums.
Other than these, I don't see any problem saving a composite, bundled and variable product and these translate properly and show on frontend as expected. However, if you think these do not save properly, I'll request for more detailed information. It'd be great if you can record your screen while showing what exactly is happening.