跳转至内容 跳转至侧边栏
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

支持人员时区: Asia/Karachi (GMT+05:00)

標籤: 

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 alexandreR-30 2 weeks, 1 days前 更新。

协助者:: Waqas Bin Hasan.

作者 帖子
3 7 月, 2025 于 11:58 上午 #17197095

alexandreR-30

Background of the issue:
I changed my product permalinks structure from: Default 隐藏链接 to Custom base /shop/%product_cat%

I then updated my WPML settings:
- Post Types Translation: Products (product) ->shop/%product_cat% / boutique/%product_cat%

Now all my product URLs are working in English, for example, the new scheme is 隐藏链接
The French version should be: 隐藏链接
But instead, the language switcher goes to 隐藏链接 and shows a 404.
And when I checked the correct URL, it also goes to a 404.

For the product categories to match the product URL, I changed my permalink structure from /product-category/ to /shop/
I then updated the settings in WPML:
- Taxonomies Translation: Product categories -> shop / boutique
However, doing so resulted in 404 error for my English product category, so I switched back to /product-category/ and it worked again. Now my French link is correct: 隐藏链接, but when I go from English 隐藏链接 to French with the switcher, it goes there: 隐藏链接 which is a 404.

Symptoms:
The language switcher goes to a 404 page for the French version of the product URL. Additionally, changing the permalink structure for product categories to /shop/ resulted in a 404 error for the English product category.

Questions:
How can I fix the 404 error when switching to the French version of the product URL?
What is the correct way to set up permalinks and WPML settings to avoid 404 errors?

主题 “[關閉] Translated Product are 404” 已关闭,不接受新回复。