Problem: You are developing a site and using the WooCommerce API to import categories, attributes, and products. However, you've encountered an issue where attributes can't be translated over the API, and attributes created through the API are monolingual, making their terms untranslatable. You are looking for a way to translate attribute names using a PHP script. Solution: Currently, it is not possible to translate attribute names through the API. You can create attributes using this guide, but to translate the attribute names, you must do it manually. Go to "WooCommerce → WooCommerce Multilingual & Multicurrency", under the Attributes tab, scroll down to the "Translations of taxonomy labels and slugs" section and add the translations there. Although this may not be the ideal solution, it is the only method available at this time. We are aware of this limitation and are hoping to include support for translating attribute labels and names in future versions of WCML.
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 you still need assistance, please open a new support ticket.
Problem: Nach dem Update von WPML auf Version 4.6.14 werden alle anderen Plugins in Englisch statt Deutsch angezeigt, sowohl im Frontend als auch im Backend. Dies betrifft auch spezifische Strings wie den Mehrwertsteuer-String von Germanized und die DHL Wunschlieferung im Checkout. Solution: Das Problem wurde durch eine Änderung in WordPress 6.7 verursacht, die auch das Backend betrifft. Wir empfehlen, das Core Ticket zu verfolgen, das sich mit dieser Änderung befasst: https://github.com/WordPress/wordpress-develop/pull/7713. Zusätzlich haben wir ein Erratum veröffentlicht, das weitere Details zu diesem Problem bietet: https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/.
Falls diese Lösung nicht relevant ist oder veraltet erscheint, empfehlen wir, die neuesten Versionen Ihrer Themes und Plugins zu überprüfen und bei weiteren Problemen ein neues Support-Ticket zu eröffnen. Wir empfehlen auch, die Seite mit bekannten Problemen zu besuchen: https://wpml.org/known-issues/.
Problem: The client is experiencing issues with syncing product gallery images across different languages on their WooCommerce site. The main language displays all images, but the translated languages do not. Additionally, categories and filters are missing on the shop page in English and Spanish.
Solution: First, ensure that the correct options are selected in the WooCommerce product settings before translating the product. If the gallery images still do not appear in translations, follow these steps: 1. Navigate to "WPML > Settings" and scroll down to the "Media Translation" section. 2. Click the 'Start' button, ensuring the options shown in the provided screenshot are selected. If the issue persists, check if the translation preference for the field storing the Gallery images is set to "Don't Translate". Change this setting to "Copy" and save the product without making any changes. This should resolve the issue. For any products where the gallery still isn't visible, open the default product and save it without making any changes. Alternatively, use the "Quick Edit" option under the product name where the gallery is not showing, and save without modifying anything.
If these steps do not resolve your issue, or if the solution seems outdated or irrelevant 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.
Problem: The client is experiencing issues where sale prices set for product variations in English are not being copied to the Bulgarian version of the product. Additionally, some product variations disappear in the Bulgarian version after the sale price is changed in English. Solution: We recommend the following steps to address the issue: 1. Navigate to WPML >> Support >> Troubleshooting page and click the following buttons: - Clear the cache in WPML - [Products] Synchronize posts taxonomies - Synchronize local job ids with ATE jobs - Synchronize translators and translation managers with ATE - Assign translation status to duplicated content - Set language information 2. Then, go to Woocommerce >> Woocommerce Multilingual >> Settings tab >> Troubleshooting link (bottom right) and select the following options: - Sync products variations - Fix translated variations relationships Click the 'Start' button. If these steps do not resolve the issue, we may need temporary access (wp-admin and FTP) to your site to further investigate. Please ensure you have taken a full backup of your database and website before providing access. You can use the Duplicator plugin for this purpose.
Please note that this solution might be outdated or not applicable to your specific 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 the problem persists, please open a new support ticket.
Problem: If you're managing a multilingual website and have added Dutch as a new language, but WPML is not using the WooCommerce and theme translation packages for Dutch, even though these packages are present. Solution: We are aware of this issue and will hadle it in the next release.
Problem: You are trying to cache translated posts but are unable to do so because of the _lsvary cookie, which affects caching behavior on your site. Solution: Currently, there is no update from the plugin authors regarding a solution to avoid the _lsvary cookie when caching translated posts. We previously reached out to the authors, and they are aware of the issue but have not provided a definitive solution yet.
We recommend contacting the plugin authors directly for the most recent updates on this issue.
The code below, provided by the client, eliminates the need to vary the cache based on currency. However, this approach is only suitable when a single currency is used per (sub)domain or URL. Please note that this code is untested and provided as-is, as it was not created by our team. We strongly recommend testing it thoroughly in a staging environment before implementation.
add_filter('litespeed_vary', 'unset_litespeed_wcml_vary_cookie', 99);
function unset_litespeed_wcml_vary_cookie($vary_list){
if (isset($vary_list['wcml_currency'])){
unset($vary_list['wcml_currency']);
}
return $vary_list;
}
If this solution does not apply to your case, or if it seems outdated, 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 you still need assistance, please open a new support ticket at our support forum.
Problem: You are trying to translate variable products using WPML, and although the translations are marked as completed, the variations are not displaying correctly on the English version of the product page. Specifically, when selecting options like 'Choose Color', nothing happens, whereas the Spanish version displays variations correctly. Solution: If you're experiencing this issue, we recommend you try the following steps: 1. Navigate to WooCommerce > WooCommerce Multilingual > Status > Troubleshooting. 2. Select "Sync products variations" and click on Start. 3. Edit the product in the original Spanish language, make a small change to the description, and then update the translation product. IMPORTANT: Please backup your database and website before proceeding.
If this solution does not resolve your issue, or if it seems outdated or irrelevant 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. Additionally, you can open a new support ticket for further assistance at our support forum.
Problem: You want to translate bank account details in WooCommerce to Croatian using WPML, but you only have one bank account and need to disable the second one. Solution: Since WooCommerce Multilingual translates content on a 1:1 basis, here are a few approaches you can consider: 1) Implement custom code to handle different bank accounts based on the language. 2) Translate all content, using placeholders (e.g., empty spaces) for fields that should remain empty. 3) Use CSS to hide specific sections for a particular language. Note that WooCommerce might use the same class names for both sets of bank details, which may require additional customization to target them properly. Alternatively, you can use a regular space or an ASCII whitespace character to make the second bank account details "invisible". You can find various ASCII whitespace symbols here.
If these solutions do not apply to your case, or if they seem outdated, we recommend opening a new support ticket. Also, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum.
Problem: You are trying to manually translate WooCommerce products using WPML, but the translation options are missing in the product overview and individual product pages. You have confirmed that Product Translation is enabled in WPML settings, but you cannot update WPML plugins, and navigating to WooCommerce > WooCommerce Multilingual only shows the setup wizard. Solution: First, ensure that the WooCommerce Multilingual plugin is installed and set up correctly, as this is necessary for translating products and their data. Complete the WooCommerce Multilingual setup by following the wizard. If the translation options are still missing after setup, try the following steps: 1. Clear the cache on your site and your browser. 2. Flush the permalink structure by navigating to Settings > Permalinks and saving the settings. 3. Check again if the translation options appear under "WooCommerce > WooCommerce Multilingual > Products". If these steps do not resolve the issue, the problem might be outdated or not applicable to your specific case. 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 issue persists, please open a new support ticket at WPML support forum for further assistance.
Problem: Wenn die Plugins 'WPML String Translation' oder 'Woocommerce Multilingual & Multicurrency' aktiviert sind, tritt ein kritischer Fehler auf, der das Durchführen von Bestellungen verhindert. Lösung: Der Fehler stammt direkt aus dem WooCommerce-Code. Überprüfen Sie die Übersetzung in WPML → String Translation und stellen Sie sicher, dass die Platzhaltervariable %s korrekt beibehalten wurde und nicht zu % oder einem anderen Wert geändert wurde. Hier ist der betroffene Code:
Diese Lösung könnte veraltet sein oder auf Ihren Fall nicht zutreffen. Wir empfehlen Ihnen, die bekannten Probleme zu überprüfen, die Version der dauerhaften Lösung zu bestätigen und sicherzustellen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben. Sollte das Problem weiterhin bestehen, eröffnen Sie bitte ein neues Support-Ticket.