when using SEO URLs there is an issue with the categories. It doesn't load the child category links correctly if the parent has a seo-alias and the child does not
example:
category_id 22 has alias 'dogs'
category_id 23 is child of 22 without alias
store.com/index.php?route=product/category&path=22_23
should become
store.com/dogs?path=23
actually becomes
store.com/dogs
so it looses the child path.
an easy fix for now is to remove all aliases or enter them all, but in the long run, this is not a viable option for my customer.
Does anybody have a quick fix for this?
Last edited by burrito on Wed Oct 15, 2014 2:19 am, edited 1 time in total.
Opencart specialist | Our website | Our modules
ok, just fixed it with some code from 2.0
in catalog/controller/common/url_alias.php
line 84 is:
after this add:
That'll fix the issue.
in catalog/controller/common/url_alias.php
line 84 is:
Code: Select all
if ($query->num_rows) {
$url .= '/' . $query->row['keyword'];
}
Code: Select all
else {
$url = '';
break;
}
Opencart specialist | Our website | Our modules
Who is online
Users browsing this forum: No registered users and 42 guests