Woocommerce + WPML: Product 404 Not found when switch language?

If you are using WPML + Woocommerce and found that, usually when you trashed and recreate a product, you may find that when you switch language from one to another, the other language will show "404 Not found".

This problem exists because your slug (Red underline: the last part of your URL if you are using permalink) is not the same across all products.

My URL for all 3 languages are:

English:  



Traditional Chinese:



Simplified Chinese:



This is how I construct my URL in different language.  Notice the last part of the URL (the product name) is the same in all 3 languages.  You just need to make sure that you have different URL (identified by language name).

This would solve your product 404 not found problem.

Hope it helps someone.

Comments

Popular posts from this blog

TCPDF How to show/display Chinese Character?

Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services

Using wget bypass htaccess username password 401 authorization