I am trying to set up WooCommerce permalinks to get something like:
example.com/shop/=> Shop page listing products
example.com/shop/category-name/=> Category page listing products from a category
example.com/shop/category-name/product-name/=> Product page showing product details
But I have a 404 not found error when trying to open the category page.
What I did is:
I created a "Shop" page and I set it as the shop page in WooCommerce settings. OK: The page works fine and is displaying all products.
In WordPress permalinks settings, I set the product category base to "shop". KO: When I try to display a category page, WP returns a 404 error (but links are properly generated in the shop page sidebar and 404 error occurs while clicking on them).
In WordPress permalinks settings, I set the product permalink to "/shop/%product_cat%". OK: Products pages are displaying without issue.
Any way to solve this?