This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing 404 errors when setting 'boutique' and 'shop' as Product category prefixes for their French and English WooCommerce shop pages, respectively. The desired URLs are: - French: /boutique/cat_name - English: en/shop/cat_name
Solution: We recommend not using the same slug for the shop base and the product category base, as this causes conflicts in WooCommerce's custom permalink structure. WordPress requires unique slugs to distinguish between categories and products. Therefore, the client should choose a different base for the product category to ensure the category page works correctly on the frontend.
If this solution does not apply to your situation, or if it seems outdated, we highly recommend checking the related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still encounter issues, please do not hesitate to open a new support ticket with us.
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.
I am trying to: my website is in french (default) and english. I woud like to have product category page with url like that :
- French : /boutique/cat_name
- English : en/shop/cat_name
Note : My french shop page is "/boutique" and english is "en/shop/"
Link to a page where the issue can be seen:
Temporarily, I put "boutique-2" and "shop-book" as Product category prefix because it's only don't work if I put "boutique" and "shop". This pages are working correctly : hidden link hidden link
I expected to see:
If I put "boutique" and "shop" as Product category prefix, I get 404 error. I woud like this URL: hidden link hidden link
Instead, I got: I get 404 error instead if I put "boutique" and "shop" as Product category prefix.
Thank you for contacting WPML support, I’m happy to help you with this issue.
In the original language French, I do not see the category URL work hidden link
so it would be an issue with the permalink on your site, not an issue with WPML.
The page hidden link is a regular page, not a WooCommerce shop page and might cause the issue. Please follow steps below to setup the shop page and category permalink then let me know how it goes:
- Go to WooCommerce > Settings > Products tab > Shop page > Set the Boutique as the shop page.
- Go to Settings > Permalinks > Product category base > Add "boutique" to the base.
- Go to WooCommerce > WooCommerce Multilingual & Multicurrency > Store URLs > Translate the Product category base with "shop" slug.
❌ IMPORTANT: Please backup your database and website before proceeding ❌
As far as I know, the shop page should have the body class "archive", "post-type-archive-product" but I don't see it on your shop page, see screenshot attached.
This issue occurs in the default language so I suggest you deactivate WPML for a while and recheck this issue. If it persists, so the issue isn't related to WPML.
If it works, please try to enable a minimal environment as below and see if it helps:
- Deactivate all plugins except WPML plugins and WooCommerce
- Switch to a standard theme of WordPress
❌ IMPORTANT: Please backup your database and website before proceeding ❌
I understand the issue. It's the custom permalink issue of WooCommerce itself, not related to WPML. You can read more about this issue in the WooCommerce documentation hidden link
If you set the product base to "shop" for example, you should NOT set the product category base to "shop" too, as this will not be unique and cause a conflict. WordPress requires something unique so it can distinguish categories from products.
In general, you should use another base for the product category to make the category page work in the frontend.