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?