Skip Navigation

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

Problem:
The client is experiencing an issue where the WooCommerce product URL slug is not correctly translated to English, showing the Spanish slug '/producto/' instead of '/product/'.
Solution:
If you're experiencing this issue, we recommend following these steps:
1. Ensure that the Base URL is translated properly in the WooCommerce Multilingual plugin. You can check the guide here: https://wpml.org/documentation/related-projects/woocommerce-multilingual/#urls
2. Go to WPML > Settings and navigate to the "Post Type Translation" section. Look for the Product post type and click on the Set different slugs in different languages for Products link to verify and adjust the Spanish slug.
3. If the problem persists, go to WPML > String Translation, find the original slug and delete it. Then try to update the slugs again from WPML > Settings > Post Type Translation > Products.

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 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 2 voices.

Last updated by Prosenjit Barman 11 months, 4 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
June 6, 2024 at 9:47 am #15710100

angelV

Background of the issue:
I have the slug /product/ in Spanish and marked as /product/ in English, but in English it still shows /product/. I am trying to translate WooCommerce product URLs using WPML.

Symptoms:
The English version of the product URL still shows the Spanish slug /producto/ instead of /product/.

Questions:
How can I ensure that the product URL slug is correctly translated in English?
Is there a specific setting in WPML that I need to adjust to fix the URL translation issue?

June 6, 2024 at 11:44 am #15710890

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand that the Product base URL is not showing correctly in the Spanish language. Could you please check this guide and make sure that the Base URL is translated properly in the WooCommerce Multilingual plugin?

If it is translated and you're still not seeing the translated base URL, please try the following steps:

- Please go to WPML > Settings and scroll to the "Post Type Translation" section.
- Look for the Product post type and click on the Set different slugs in different languages for Products link.
- Check the Spanish slug. Make sure that the slug is the same as what you have set for the translated product base URL.

Please let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

June 9, 2024 at 9:35 am #15719150

angelV

Hello, I had not received a reply. I have done what you said, and I have got it right.

What could be happening?

Captura de pantalla 2024-06-09 a las 11.34.02.jpg
June 10, 2024 at 5:22 am #15720126

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the update.

Since the issue persists, will you please follow the solutions outlined in this ticket and check if any of them helps in solving the issue?

If the issue persists, a closer inspection will be required to understand the root cause of the issue.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

June 10, 2024 at 8:29 am #15720568

angelV

Good afternoon, with point 2 I was able to solve the problem.

2. If the problem persists, go to WPML > String Translation, find the original slug and delete it. Then try to update the slugs again from WPML > Settings > Post Type Translation > Products.

Thanks!