Problem: The client is experiencing an issue where the Custom 404 Pro plugin, even though translated following the rules, links to the Italian error page instead of the English one when switching languages. This causes the settings for the Italian page to be deleted. Solution: Since the Custom 404 Pro plugin is not officially compatible with WPML, we recommend adding the following custom code to the
functions.php
file in your theme folder:
add_action('template_redirect', function() {
global $wpdb;
// Define the custom table name
$table_options = $wpdb->prefix . 'custom_404_pro_options';
// Get the stored 404 page ID from the custom table
$page_id = $wpdb->get_var("SELECT value FROM $table_options WHERE name = 'mode_page'");
if (is_404() && $page_id && function_exists('icl_object_id')) {
$translated_page_id = icl_object_id($page_id, 'page', true);
if ($translated_page_id && $translated_page_id != $page_id) {
$translated_page_url = get_permalink($translated_page_id);
if ($translated_page_url) {
wp_redirect($translated_page_url, 302);
exit;
}
}
}
});
Please test this code in a staging environment before applying it to your live site. Additionally, consider contacting the plugin authors to encourage them to join our Go Global Program.
If this solution does not resolve your issue or seems outdated, please check our related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If necessary, do not hesitate to open a new support ticket.
Problem: You are experiencing issues with the WPC Frequently Bought Together plugin when switching languages on your website. Specifically, products added to the cart in one language disappear when switching to another language. Additionally, the + sign in the Frequently Bought Together widget does not adjust correctly between Right-to-Left (RTL) and Left-to-Right (LTR) orientations. Solution: 1) For the issue of products disappearing from the cart upon language switch, this is a known behavior with complex products. We recommend enabling the option in WooCommerce Multilingual (WCML) to 'Prompt for a confirmation and reset the cart' when switching languages. This option is particularly useful for complex products. You can find more details here: Clearing Cart Contents When Language or Currency Change. Additionally, we invite the plugin author to join our GoGlobal program to work on compatibility improvements: Go Global Program. 2) For the alignment issues of the + sign in RTL and LTR orientations, this is likely controlled by the theme or the plugin's CSS and not by WPML. We advise testing the widget without WPML in both RTL and LTR modes and reporting the issue to the theme or plugin developer.
If these solutions do not resolve your issue or if they seem 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 the problem persists, please open a new support ticket.
Problem: The client is experiencing an issue where the English version of the gallery is not copied as it is on the Italian site after moving the site to production. This problem was previously reported in another ticket. Solution: The issue is with the plugin Divi Dynamic Helper, which is not officially compatible with WPML. Disabling Divi Dynamic Helper, the option to add the gallery dynamically disappears, and only allows for selecting individual images. There is no way to display an ACF-created gallery in Divi without using a third-party plugin, as confirmed here: https://divibooster.com/show-acf-gallery-images-in-a-divi-gallery-module/. If there is an issue with Divi and ACF alone, we are committed to resolving it. However, since a third-party plugin not tested with WPML is involved, a complete debugging is necessary, and we need the cooperation of the plugin author. They can contact us through this form: https://wpml.org/documentation/support/go-global-program/.
As a workaround, we can suggest the following: 1. Open the page in the Divi editor. 2. Open the gallery module settings. 3. Select the correct Gallery (it should be 'Galleria camera 1', but if not, use the same value as in the Italian room). 4. Save. 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 issue persists, please open a new support ticket at WPML support forum.
Problem: The client is experiencing an issue where sub-taxonomies are not displaying in an Elementor widget. This widget is part of the Havezic theme, which has not been tested or made compatible with WPML. Solution: We recommend contacting the theme author to request adjustments in the code to correctly fetch translated taxonomies. If the theme author is willing to make their theme compatible with WPML, they can join our GoGlobal program. We are ready to collaborate and provide assistance once the theme author agrees to work with us.
If this solution does not apply to your case, or if it seems outdated, please check our related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if further assistance is needed. You can do so at our support forum.
Problema: Nella pagina delle stanze del sito, i contenuti sono duplicati e visualizzati sia in italiano che in inglese. Soluzione: Questo accade perché il tipo di contenuto 'eagle_rooms' non era impostato come traducibile.
Se questa soluzione non risolve il problema o sembra non essere più attuale, ti invitiamo a verificare i problemi noti e a confermare che hai installato le versioni più recenti dei temi e dei plugin. Se necessario, apri un nuovo ticket di supporto.
Problem: You are experiencing issues with incorrect discount calculations when adjusting item quantities in your cart while using the Multi-currency plugin alongside the Flycart plugin. The discount fails to apply correctly when the item quantity is decreased from three to two. Solution: 1. Verify if the issue persists by replicating it in a controlled environment. We have set up a minimal WordPress installation for you to test this scenario. Access it here: Test Environment. 2. Check the Flycart documentation for any compatibility issues with WPML, especially regarding multi-currency setups. You can find the documentation here: https://docs.flycart.org/en/articles/2428478-compatibility-wpml. 3. If the problem persists, contact the Flycart plugin author to report the issue, as they might need to adjust the plugin for better compatibility with WPML's Multi-currency feature.
Please note that this solution might be outdated or not applicable to your specific case. If these steps do not resolve your issue, 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 needed, do not hesitate to open a new support ticket with us for further assistance at WPML Support Forum.
Problema: Hai notato che sulla pagina Rooms del tema Zante il menu top, l'header e il footer sono diversi rispetto alle altre pagine del sito e il selettore di lingua non viene visualizzato nel top header e nel footer come nel resto del sito. Soluzione: Il controllo del selettore di lingua è gestito dal tema e non da WPML. Se controlli in WPML > Lingue, noterai che non è abilitato nessun selettore di lingua, quindi l'aggiunta del selettore è gestita dal tema. Ti consigliamo di contattare il supporto del tema per ulteriore assistenza poiché le impostazioni del tema potrebbero sovrascrivere quelle di WPML. Inoltre, il selettore nella top bar è inserito direttamente nel template che si trova in
templates/header/top-bar.php
. Non ci sono template specifici per la pagina Rooms, che è l'archivio del post type.
Se questa soluzione non risolve il tuo problema o sembra non essere più attuale, ti invitiamo a verificare i problemi noti e a confermare che hai installato le ultime versioni dei temi e dei plugin. Se necessario, apri un nuovo ticket di supporto sul forum di supporto WPML.
Problem: You are trying to configure WooCommerce PDF Invoices to generate invoices in different languages using WPML, but you can't save the settings for each language. The PDF always generates information in English, and the button cannot be translated because the page settings are not saved. Solution: Firstly, it's important to note that the WooCommerce PDF Invoices plugin by Andrew Benbow is not officially compatible with WPML. We recommend using a compatible plugin like WooCommerce PDF Invoices and Packing Slips Professional. However, as a workaround, you can try the following steps: 1. Open
// Get the WooCommerce order_id<br />$order_id = $order->get_id();
with:
// Get the WooCommerce order_id<br />$order_id = $order->get_id();<br /><br />// WPML workaround for compsupp-7811<br />$order_lang = $order->get_meta('wpml_language', true);<br />$settings['pdf_termsid'] = apply_filters('wpml_object_id', $settings['pdf_termsid'], 'page', TRUE, $order_lang);
This code should help translate the page_ID based on the order language.
If this solution does not resolve your issue or seems outdated, please check the related known issues and ensure you have the latest versions of themes and plugins installed. If necessary, do not hesitate to open a new support ticket at WPML support forum for further assistance.