Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Bobby 3 weeks, 5 days ago.

Assisted by: Bobby.

Author Posts
October 23, 2024 at 7:25 pm #16323382

dragosI-2

Background of the issue:
I am developing an e-commerce website with WooCommerce and WPML, featuring products in four languages. The URL structure for products is 'mywebsite.com/shop/category/product'. The '/shop/' and '/shop/category' parts are translated correctly for all languages, but the full product URLs are not working in the additional languages.

Symptoms:
The product URLs return a 404 error for the additional three languages because the '/shop/' part is not translated, even though it is set to be translated and works correctly in other parts of the site.

Questions:
Why is the '/shop/' part of the product URL not translating in the additional languages?
How can I fix the 404 error for product URLs in the additional languages?

October 24, 2024 at 5:58 pm #16327819

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

You mentioned that the slug for 'shop' is translated, how have you translated it ?

Please go to WPML->String Translation-> look for 'shop' and let me know if it's translated there as well.

Also verify that the language of the original string is assigned correctly. Meaning that if the string is 'shop' the flag should be English.

If you do not see the slug, go to WooCommerce> WooCommerce Multilingual -> Store URLs, and then it will appear in WPML > String Translation.

Let me know your results, please.

The topic ‘[Closed] Woocommerce urls are broken’ is closed to new replies.