Skip Navigation

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

Problem:
The client is trying to translate the WooCommerce product slug from 'produits' in French to 'product' in English, but the URL does not reflect the translated slug even though it appears translated in WPML.
Solution:
If you're experiencing this issue, we recommend that after changing the product URL structure in the permalink settings, you should also resave the settings in WPML. Specifically, go to WPML -> Settings and resave it. This action should ensure that the slug translation is properly applied and saved.

Please note that this solution might be outdated or not applicable to your specific 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.

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

Last updated by jonathanF-3 1 day, 7 hours ago.

Assisted by: Bruno Kos.

Author Posts
December 5, 2024 at 1:44 pm

jonathanF-3

Background of the issue:
I am trying to translate the slug 'produits' in French to 'product' in English for my WooCommerce products. The issue can be seen on this page: hidden link
Http acces:
User: gridpane
Password: ahv1ooyei8toophooF8hooF3i

Symptoms:
The WooCommerce products slug is not translated in the URL even though it is translated in WPML. I expected to see the URL as hidden link, but instead, I got hidden link.

Questions:
Why is the WooCommerce product slug not translating in the URL?
How can I ensure the slug is translated correctly in the URL?

The wooccommerce and wpml settings : hidden link

Thank you!

December 5, 2024 at 2:22 pm
December 6, 2024 at 1:14 pm #16486202

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

I am still checking this with the assistance of our 2nd tier and will keep you posted.

December 10, 2024 at 10:40 am #16497349

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size. You can find more information about the process here: [link](https://wpml.org/faq/provide-supporters-copy-site/). Please confirm if this approach is acceptable to you.

December 10, 2024 at 2:34 pm #16498923

jonathanF-3

Yes you can do it.

December 10, 2024 at 4:51 pm #16499769

jonathanF-3

I found the problem.
When we change the products url structure in the permalinks settings, the translation is not saved in wpml post type translation / slugs. The translation text is there just not saved.

December 11, 2024 at 7:45 am #16501825

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

I see that it works on your site now.

So even if you save on WooCommerce Multilingual & Multicurrency, we still need to go WPML -> Settings and just resave it and then it works.

I see this on my localhost as well.

I will report this to our development team, but given that it works on your account I believe that we can close here?

Clipboard_12-11-2024_01.jpg
save here again.jpg
December 11, 2024 at 7:08 pm #16505190

jonathanF-3

Yes thanks for your help!