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?
A site URL would be helpful. Is canonical URL working properly?
DL
DL
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
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.
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.
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
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
Who is online
Users browsing this forum: No registered users and 12 guests