Skip to content Skip to sidebar

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

Problem:
When switching languages from Dutch or French to another language on the WooCommerce Shop page, the language switcher redirects to the homepage instead of the intended language-specific shop page.

Solution:
We discovered that the issue was due to a conflict in the permalink settings where both the products base and the Shop's own base were set as "shop". To resolve this, we recommend changing one of these bases to a different slug to avoid duplication. This adjustment should ensure that the language switcher redirects correctly to the language-specific shop page.

If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the issue persists, we highly recommend opening a new support ticket with us 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.

Tagged: 

This topic contains 1 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 2 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
June 27, 2024 at 12:24 pm

philippeB-22

Background of the issue:
I am trying to use the language switcher on the Woocommerce Shop page of my site hidden link. When switching languages from English to French (hidden link) or Dutch (hidden link), it works correctly. However, switching from Dutch or French to another language redirects me to the homepage: hidden link

Symptoms:
Switching from Dutch or French to another language on the Woocommerce Shop page redirects to the homepage instead of the intended language-specific shop page.

Questions:
Why does the language switcher redirect to the homepage when switching from Dutch or French to another language on the Woocommerce Shop page?
How can I fix the language switcher to ensure it redirects to the correct language-specific shop page?

June 27, 2024 at 12:55 pm
June 27, 2024 at 1:02 pm #15844082

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Reference to our recent chat, I found that in Permalinks, products base was set as "shop", while Shop's own base was also set as "shop".

It was conflicting and correcting this (i.e. not using duplicate base slug in WC) it seems to work fine now.

Please see attached for reference.

Regards.

wrong base.jpg
permalinks.jpg
correct base.jpg