Skip Navigation

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

Problem:
You have a website using Rehub and WooCommerce and want to change the language of the 'product base' in URLs for your products. Despite translating the product base from French 'banque-en-ligne' to English 'online-bank', German 'online-bank', and Italian 'banca-online', all products still show 'banque-en-ligne' in all languages.
Solution:
1) Set the default product base to 'produit' for French and translate it accordingly for other languages.
2) Be aware that changing the slug might lead to 404 errors if the old slug is still used in posts or menus. To avoid impacting your live site, we recommend setting up a staging site to test these changes before applying them.

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 further assistance is needed, we encourage you to open a new support ticket.

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 5 replies, has 0 voices.

Last updated by julienD-52 3 weeks, 3 days ago.

Assisted by: Osama Mersal.

Author Posts
January 14, 2025 at 9:43 pm #16595000

julienD-52

Background of the issue:
I have a website using Rehub and WooCommerce. I want to change the language of the 'product base' in URLs of my products. French is the original language. I translated FR 'banque-en-ligne' to EN 'online-bank', DE 'online-bank' and IT 'banca-online'.

Example:
FR: hidden link
EN is currently: hidden link but it should be: hidden link

Symptoms:
All the products still have 'banque-en-ligne' in all languages, despite translations.

Questions:
How can I change the language of the 'product base' in URLs for different languages using WPML?

January 15, 2025 at 6:47 am #16595623

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) Could you please check if the issue persists in a minimal environment by following these steps?

1- Deactivate all the plugins except WPML CMS, String Translation, WooCommerce, and WooCommerce Multilingual.
2- Switch to a WordPress default theme like Twenty Twenty-one.
3- Go to WPML-> String Translation and delete the slug translation.
4- Go to WPML-> Settings-> Post Type Translation section.
5- Translate the product's slug.

If the issue is gone, activate them one by one to see which one is causing an interaction issue.

❌ Please backup your database before performing the above test ❌

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.

Best regards,
Osama

January 15, 2025 at 10:21 am #16596587

julienD-52

Hi,

Thanks for the quick reply.

The debug info is attached.

Sorry, but I'm reluctant to disable plugins and change the theme. I'm too afraid of messing up my website which is up and running.

Perhaps an easy solution would be to change the product permalinks from 'Custom base' to 'Default value'? What do you think? Please see the attached screenshot.

Thank you very much for your help!

Kind regards,

Julien

2025-01-15 11_17_04-Réglages des permaliens ‹ heyneo.ch — WordPress and 12 more pages - Work - Micro.jpg
January 15, 2025 at 10:33 am #16596651

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Julien,

Thanks for your reply. You can try to make that change and check if it fixes the issue.

Best regards,
Osama

January 15, 2025 at 12:20 pm #16597146

julienD-52

Hi Osama,

Ok thanks. If I do it, will I have the word "produit" for all the languages? Or will I still be able to edit the languages to have: FR 'banque-en-ligne' to EN 'online-bank', DE 'online-bank' and IT 'banca-online' ?

Also what are the main risks linked to that manipulation?

Thank you very much.

Julien

January 15, 2025 at 1:45 pm #16597530

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Julien,

1) You will have "produit" for French and can translate it for other languages.

2) The risk of changing the slug is that links will be redirected to 404 if you add the old slug in posts or menus.

If unsure, please create a staging site and try things there before applying them to the live site.

Best regards,
Osama

January 16, 2025 at 3:08 pm #16602592

julienD-52

Thanks a lot. I finally managed to solve the issue.
Best regards,
Julien