Problem: The client added a new shipping class named 'S' and filled in the appropriate shipping fees. However, when adding a product with this new class to the cart, the fees are calculated in French but not in English. Solution: 1. Configure the translation of taxonomies: - Navigate to WPML > Settings > Taxonomy Translation. - Locate the 'product_shipping_class' taxonomy. - Set the taxonomy to 'Translatable - only show translated items'. 2. Translate the shipping classes: - Go to WPML > Taxonomy Translation. - Select 'product_shipping_class' from the dropdown menu. - Click the plus icon next to each shipping class to enter the translation of the name, slug, and description. 3. Force the calculator to only work when the address is typed. 4. Resynchronize the shipping classes. 5. Change the backend language to 'all languages', edit the zones, and re-save them. 6. Retranslate the 'S' class from WPML > Taxonomy Translation.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we recommend opening a new support ticket. We also 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. For further assistance, please visit our support forum at WPML French Support Forum.
Problem: The client is experiencing an issue where products in secondary languages are being incorrectly synced and displayed in their Facebook catalogue, despite being archived in WooCommerce. This issue arises from the integration between WPML and Facebook for WooCommerce. Solution: 1. We confirmed that the 'Facebook Visibility' feature in WPML archives secondary language products as intended, but they are still being synced by Facebook for WooCommerce. 2. Our compatibility team has escalated this as a feature request to the developers of Facebook for WooCommerce. However, they have found that the integration is managed by Facebook for WooCommerce, not WPML. 3. We suggested a potential workaround using a custom filter to prevent syncing of secondary language products:
**** Important! Please make a full site backup (files and DB) before you proceed with those steps**** 4. We also recommend contacting Automatic, the authors of Facebook for WooCommerce, to address this integration issue. If this solution does not resolve your issue or seems irrelevant, 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 at WPML support forum.
Problem: The client is developing a site using WPML and has encountered an issue where the category page for 'Serrature', a child category of 'Prodotti', does not load in languages other than Italian, despite the URL being correct and all category names being translated. Solution: After consulting with our second-tier supporters, it was determined that the issue was related to the theme builder and not WPML. We recommend checking the theme builder settings and ensuring compatibility with WPML. If you're experiencing similar issues, we suggest verifying the theme's compatibility with WPML and checking for any specific settings within the theme builder that might affect category translations.
Please note that this solution might be 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 the problem persists, please open a new support ticket at WPML support forum for further assistance.
Problem: The client is unable to use the new product translation method in WPML as it requires assigning translators, which does not suit their needs. They are looking for a way to translate products directly without needing to assign translators, similar to the old method. Solution: We recommend the following steps to view and manage product translations directly: 1. Navigate to WP Dashboard > Products. 2. Click on "Screen Options" at the top right section. 3. Enable the "Languages" option from the additional options that appear. This will display a languages column in the product list, allowing direct access to translations. If the columns appear jammed, deactivate other columns from "Screen Options" to create enough room.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking the related 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.
Problem: Sie möchten, dass alle WooCommerce-Artikel und Produktkategorien einheitlich in verschiedenen Sprachen dargestellt werden, wobei nur die Überschrift und Beschreibung übersetzt werden sollen. Derzeit müssen Artikel pro Sprache separat gepflegt werden, was zu unterschiedlichen Lagerbeständen führt. Solution: Technisch gibt es separate Datenbankeinträge für jede Sprache, aber die Lagerbestände werden synchronisiert und sind für Bearbeitungen gesperrt, wenn das Produkt in einer Sekundärsprache geöffnet wird. Um die Lagerbestände nachzusynchronisieren, folgen Sie bitte dieser Anleitung: https://wpml.org/forums/topic/sync-of-stock/. Für die Synchronisation der Artikelnummern (SKU) beachten Sie bitte diese Anleitung: https://wpml.org/forums/topic/different-sku-for-different-languages/#post-6586685.
Falls diese Lösungen für Sie nicht relevant sind, weil sie veraltet sind oder nicht auf Ihren Fall zutreffen, empfehlen wir Ihnen, ein neues Support-Ticket zu eröffnen. Wir empfehlen auch, die Seite mit bekannten Problemen (https://wpml.org/known-issues/) zu überprüfen, die Version der dauerhaften Lösung zu verifizieren und zu bestätigen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben.
Problem: The client was experiencing an issue where some products were displaying in incorrect categories on their multilingual website. Solution: 1. We first checked if the issue occurred in the original language of the site. 2. We recommended increasing the WordPress memory limit to at least 256MB by adding the following code to the wp-config.php file:
3. We requested the client to ensure all plugins and the WordPress core were updated. 4. After updates, we identified that the theme was still outdated and needed updating. 5. Upon updating, we performed troubleshooting steps and corrected the slug for the shop page in both languages, which resolved the issue. 6. The problem was due to the shop page slug conflicting with the product slug.
If this solution does not resolve your issue or seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket here.
Problem: The client needed to retrieve the currency list with the exchange rates for their site using WPML and was unsure which hook to use. Solution: We advised the client to access the currency list and exchange rates through the
_wcml_settings
option in WordPress, which is a serialized array containing WooCommerce Multilingual (WCML) settings. Specifically, the
currency_options
key within this array holds the necessary data. Here is a step-by-step guide on how to retrieve this information:
function get_wcml_currency_rates() {
$wcml_settings = get_option( '_wcml_settings' );
if ( ! isset( $wcml_settings['currency_options'] ) ) {
return [];
}
$currency_options = $wcml_settings['currency_options'];
$rates = [];
foreach ( $currency_options as $currency_code => $currency_data ) {
// WCML may store 'rate' as string or float
$rate = isset( $currency_data['rate'] ) ? floatval( $currency_data['rate'] ) : 0;
// Only include if rate is > 0
if ( $rate > 0 ) {
$rates[ $currency_code ] = $rate;
}
}
return $rates;
}
//For testing
$rates = get_wcml_currency_rates();
echo '<pre>';
print_r($rates);
echo '</pre>
<p>';<br />
// Output might be: ['USD' => 1.08, 'GBP' => 0.86, 'AUD' => 1.64]<br />
Please note that we do not typically provide custom code solutions. For further customization, you might need to hire an independent contractor.
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.