it doesn’t change dynamically or follow the user’s path – that would be extra processing, uncachable, and of little benefit. It shows the structure of the product within the site (with one parent category).
No dupe content, and I don’t think google cares.
Thread Starter
woober
(@woober)
Thanks for the reply.
Thats what im thinking of changing, so please let me know, if this is a bad idea:
Changing the path, so it shows what category they came from. This has a huge benefit. Which is im able to show where the user came from. So the following happens:
– Menu & widget_product_categories has one active categeory(instead of all the categories its within or just the one which is highest in the that products category-tree.. parent. That category usually isnt the category they came from)
– Breadcrumbs contains the category they came from. same issue as above
The active/current class in the menu etc. is really bad, since they dont get the real location of where they are at the website
Since the product-url will be /product/productName, but only has these changes:
– Different breadcrumbs
– .current class to widget_product_categories
Will that make it unable to cache? if yes, can i make make it not cache the area i dont need it to?
I think its a bad idea.
The active/current class in the menu etc. is really bad, since they dont get the real location of where they are at the website
You can think of it in two ways:
1. The location on the site is fixed – product is “within” one main product
2. The location on the site varies based on how the customer gets there
I personally think 2 is more confusing if the ‘position on site’ changes. We do it #1 way.
#2 cannot be cached because you cannot account for how users navigate around.
Thread Starter
woober
(@woober)
Thanks for taking the time to explain me this.
What would you suggest i do in this example:
Unisex t-shirt is located in:
– Men
– Women
They open the product from Women category. They will now see:
– Breadcrumbs: Men (should be women and now the customer is *confused..)
– Both Men & Women is .current or atleast the wrong one is .current (i could remove this. which is a shame. breadcrumbs is the worst)
*confused = could probably make a better example. Point is they can get confused. They didnt come from another category.
What does all the big sites do, when the product is within multiple categories
Found this link: wp_get_referer(). Havent tryed it. Like to know what you think, before i do anything. New to all this 🙂
Notice this
Having category in the URLs is optional btw, see settings > permalinks.
Thread Starter
woober
(@woober)
That result in the same problem: They open the product from Women category and it shows them, they are in the Men category.
Suggestion to reply prev. question? 🙂
You could make use of referer, but you’d need to customise our breadcrumb function with your own code to do so.