Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is facing two critical issues blocking their site launch: 1) The WPML language switcher fails on mobile and tablet views, not displaying other languages for switching, although it works correctly on desktop. 2) When switching languages on WooCommerce order view pages, the order ID parameter is lost, and users are redirected to the dashboard instead of the translated endpoint URL.
Solution:
We recommended the client to ensure a full site backup before proceeding with any changes. We then suggested reproducing the issue on a staging site with minimal environment settings to isolate the problem. If the issue disappears in a minimal environment, the client should reactivate other plugins one by one to identify the conflicting plugin. This step-by-step approach helps pinpoint the exact cause of the malfunction.

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. If problems persist, please open a new support ticket at WPML support forum for further assistance.

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.

This topic contains 3 replies, has 1 voice.

Last updated by Carlos Rojas 3 weeks, 4 days ago.

Assisted by: Carlos Rojas.

Author Posts
September 18, 2025 at 5:44 pm #17414261

maximilianoP

Background of the issue:
URGENT - LAUNCH BLOCKING ISSUE: Our site launch is imminent and this language switching malfunction is a critical blocker requiring immediate assistance.

Preserve "View Order" Page Across Languages (WPML + XStore)

Goal: Switching languages while on an order view page must preserve the same {order_id} with the correct translated endpoint.

Current Issue: Switching languages from .../my-account/view-order/{order_id}/ redirects to My Account dashboard instead of the translated view-order page.

Example URLs:
- English: hidden link
- Spanish: hidden link
- Finnish: hidden link

Required Behavior:
- EN: /my-account/view-order/{order_id}/
- FI: /fi/oma-tili/nayta-tilaus/{order_id}/
- ES: /es/mi-cuenta/ver-pedido/{order_id}/

Additional Mobile Issue: The WPML language switcher also fails on mobile and tablet views where it should display as a dropdown menu - the other languages (Finnish/Spanish) are not visible for switching. This works correctly on desktop view where all flags are shown.

Environment: WordPress 6.8.2, WooCommerce 10.1.2, WPML Multilingual CMS 4.7.6, XStore 9.5.4, WPML Multilingual & Multicurrency for WooCommerce 5.5.1.1

Site URL: hidden link

My developer reviewed the issue and recommended opening this WPML support ticket. I can provide immediate temporary admin access to expedite diagnosis and resolution. Please enable the private field so I can share credentials securely.

Symptoms:
MOBILE/TABLET ISSUE: The WPML language switcher fails on mobile and tablet views where it should display as a dropdown menu - the other languages (Finnish/Spanish) are not visible for switching. This works correctly on desktop view where all flags are shown properly.

WOOCOMMERCE ENDPOINT ISSUE: When users switch languages while on WooCommerce order view pages, WPML loses the order ID parameter and redirects to the dashboard instead of the translated endpoint URL (e.g., /fi/oma-tili/nayta-tilaus/16387/).

Both issues combined are blocking our site launch as mobile users cannot switch languages at all, and desktop users lose their place when switching on order pages.

Questions:
- How should WPML be configured to handle WooCommerce endpoint parameters during language switching?
- Are there specific WPML settings for preserving URL parameters in WooCommerce endpoints?
- Why does the WPML language switcher work on desktop but fail to show other languages in the mobile/tablet dropdown menu?
- Is there a known issue or workaround for this behavior?
- Could the main menu language switcher malfunction be related to the WooCommerce endpoint issue?
- What troubleshooting steps should we take to diagnose why the language switcher has stopped working on mobile devices?

September 18, 2025 at 5:45 pm #17414466

maximilianoP

"UPDATE: Updated WPML Multilingual CMS to v4.8.1, but both mobile language switcher and WooCommerce endpoint issues persist. Media Translation update failed with fatal error but was recovered."

September 19, 2025 at 8:55 am #17415990

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
Thank you for contacting us

Please share the access credentials to the staging site in your next message, which I have set private. This will allow us to reproduce the issue and double-check the configuration.

Confirm you have created a full site backup that you can restore if necessary.

Looking forward to your message.
Regards,
Carlos

September 19, 2025 at 10:23 am #17416348

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hola,
Muchas gracias por compartir las credenciales solicitadas.

El problema ha desaparecido en un ambiente mínimo. Lo que significa que el problema no está en ninguna de las funcionalidades activas. Por favor activa el resto de los plugins, uno por uno, hasta que el problema vuelva a aparecer y encuentres al culpable.

Saludos!