Page 1 of 1

Breadcrumb Paths that Shouldn't Exist

Posted: Mon Jun 16, 2014 10:43 pm
by ecommercesussexltd
Hi Everyone,
I have nearly 100 categories, at most, they are 3x levels deep.

I've noticed on my Analytics that people are arriving on urls that shouldn't exist.

The breadcrumbs show the product in a category that it's not in.

If I copy and paste the URL, I can indeed load the page for the product in a random place that has no relevance to the categories that it's actually been assigned to.

Where do I even start to debug this?

Re: Breadcrumb Paths that Shouldn't Exist

Posted: Tue Jun 17, 2014 10:53 am
by cwswebdesign
A site URL would be helpful. Is canonical URL working properly?

DL

Re: Breadcrumb Paths that Shouldn't Exist

Posted: Sat Jun 21, 2014 11:22 pm
by billynoah
Breadcrumbs in OpenCart are built off of the url. Unfortunately OpenCart doesn't offer a heck of a lot in terms of url validation - a topic which I've posted about in the past but which received little interest. You are correct in that theoretically a url path like:

mystore.com/categorya/categoryb/product

should only be valid if the product actually belongs in both of those categories. I wrote a little url validation vqmod a while back but it doesn't validate products against relevant categories, only a very basic sequence of allowed path rules.

Perhaps I'll work on this a bit more so it's actually useful. Feel free to bug me as it's been something I've been wanting to finish for a while.

Re: Breadcrumb Paths that Shouldn't Exist

Posted: Sun Jun 22, 2014 12:52 am
by billynoah
I went ahead and finished this as I'm pretty sure it would be useful to a great many. I've only done preliminary testing, please let me know if there are any bugs!

EDIT: As I continue to work out the bugs, I'm just gonna post this link here for another thread which contains the most up to date version of this
http://forum.opencart.com/viewtopic.php?f=131&t=127057