Tested on WordPress 5.3.2 and Woocommerce 4.0.1
This is a simple plugin that fixes 404 error when product category base is set the same as shop base in WooCommerce. Now you can 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 (generates 404 error without this plugin)
example.com/shop/category-name/product-name/=> Product page showing product details
Supports child categories up to 2nd level deep:
Supports Shop child pages:
The plugin does not work on multisite network.
== Intro ==
If you are trying to use the same base “shop” for categories & products, unfortunately you will get an error on the category pages. Here’s the Woocommerce official explanation:
Please note: The product custom base should not conflict with the taxonomy permalink bases. 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 will conflict. WordPress requires something unique so it can distinguish categories from products.
It’s not recommended to use same base for products and taxonomies, but if you have to make it this way…this plugin will resolve this issue.
== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the ‘Plugins’ screen in WordPress
No configuration is required. Works out of the box.
Find Out More
Documentation & Screenshots