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?
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.