Woo Category Base Permalink Fixer

848 Downloads / Latest version: 2.3
Rated 5.00 out of 5 based on 17 customer ratings
(17 customer reviews)

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
  • example.com/shop/category-name/product-name/ => Product page showing product details

$
Any donation you can make to help support further development of quality plugins and themes is greatly appreciated!

Description

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: example.com/shop/my-cat-1/sub-cat1/sub-sub-cat/product-name/

Supports Shop child pagesexample.com/shop/my-account/

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

17 reviews for Woo Category Base Permalink Fixer

  1. Rated 5 out of 5

    Roal Alleman

    Works like charm! Thank so much for resolving my big problem. Regards!

  2. Rated 5 out of 5

    Anton

    You saved my day, many thanks.

  3. Rated 5 out of 5

    Mike L.

    Great plugin….thank you.

  4. Rated 5 out of 5

    msass

    Installed, enabled….it works, nothing more to do.

    Good job.

  5. Rated 5 out of 5

    thanks

    Easy to use and worked flawlessly right out of the box.
    Well done, thanks.

  6. Rated 5 out of 5

    smmbco

    Works 🙂

  7. Rated 5 out of 5

    Alvaro Sanchez

    Hi, do you know if works for tag base too? thx

    • admin (verified owner)

      Hi, please send me a screenshot of your WP permalinks settings. Will try it on our dev, if not working you will receive an update soon…

  8. Rated 5 out of 5

    SBC

    Thanks!

  9. Rated 5 out of 5

    Lnc

    Finally a solution that works! Thanks!

  10. Rated 5 out of 5

    a-samoylov (verified owner)

    Thanx!!!!! a lot

  11. Rated 5 out of 5

    BigM

    Wow…solution I was looking for

  12. Rated 5 out of 5

    panp2 (verified owner)

    Works where other solutions failed! Spotted a bug where opt_rule[‘sub-cats’] is not set, WP will throw an undefined index error. Resolved by changing if ( $seco ) to if ( isset( $opt_rule[‘sub-cats’] )) and then moving the $seco = $opt_rule[‘sub-cats’] ; rule into the if statement. Hope that helps anyone spotting the same

    • admin (verified owner)

      Version 2.2 resolved this issue.

  13. Rated 5 out of 5

    nick.seoshnik (verified owner)

    Thanks. It’s working!

  14. Rated 5 out of 5

    fetmaster2013 (verified owner)

    Great work! Thx a lot! When will support more child categories?

  15. Rated 5 out of 5

    aljandro

    Thank you!… now waiting support on PHP 7.3 🙂

  16. Rated 5 out of 5

    gavn8r (verified owner)

    Works like a charm! Thank you so much for this excellent plugin. I’ve been fighting this problem for years now.

  17. Rated 5 out of 5

    igor.v.sabadash (verified owner)

    It’s working very well!!! Super!!!

Add a review

Your email address will not be published. Required fields are marked *