404 When Clicking Products in Categories (Permalinks)?
-
We are in the process of developing a new Toy Hire site (see here https://toyspace.onedigital.co.nz) based on Woocommerce (Previously Jigoshop) and are having issues with our Permalink structure or maybe something else.
Basically we want to organise all our Toys into Categories and maybe even subcategories, it will end up being similar to our original site (see here toyspace.co.nz). On that site we had Browse our Toys on the right hand side which would filter the output by category or brand or size, etc. This was done using tags, however there was no way to have the toys end up with a specific Permalink address, it was just based on the alphabetically lower tag.
So for the problem with the categories on the woocommerce new site we have found a work around which involves making the “Product Category” Base different to the “Shop Base”. This results in the url looking like this:
Shop: toyspace.onedigital.co.nz/toy-hire/
Categories: toyspace.onedigital.co.nz/toys-online/dress-up-costumes/
Sub Categories: toyspace.onedigital.co.nz/toys-online/dress-up-costumes/fancy-dress/
Produts: toyspace.onedigital.co.nz/toy-hire/fancy-dress/test-outfit/Now that works absolutely fine and the products will be displayed but it makes the url structure very confusing and will not work to well once we enable the breadcrumbs plugin.
What we want to have is the Shop Base and the Category Base to both use “toy-hire”. So the structure should look like below:
Shop: toyspace.onedigital.co.nz/toy-hire/
Categories: toyspace.onedigital.co.nz/toy-hire/dress-up-costumes/
Sub Categories: toyspace.onedigital.co.nz/toy-hire/dress-up-costumes/fancy-dress/
Produts: toyspace.onedigital.co.nz/toy-hire/dress-up-costumes/fancy-dress/test-outfit/However this results in a 404 on the product page, also when using subcategories the URL structure drops the main category off like below:
toyspace.onedigital.co.nz/toy-hire/fancy-dress/test-outfit/
Notice the missing “dress-up-costumes” section after toy-hire.
But even when putting products directly into a Category we still have the 404 issue, see the following example:
Shop: toyspace.onedigital.co.nz/toy-hire/
Category: toyspace.onedigital.co.nz/toy-hire/ride-on-toys/
Product: toyspace.onedigital.co.nz/toy-hire/ride-on-toys/test-car/Any help on this issue would be greatly appreciated, I’ve been mucking around changing Permalink structures and different Shop Bases, as well as the “Shop Page Display” and “Default Category Display” on the Woocommerce Catalog page under settings. Currently these are set to:
Shop Page Display Show Subcategories
Default Category Display Show Products
- The topic ‘404 When Clicking Products in Categories (Permalinks)?’ is closed to new replies.