Page 1 of 1

Categories and Breadcrumbs Modules Help

Posted: Sun Nov 22, 2015 11:23 am
by neljan
Hello :)

I set my layout to show the categories module upon the product page and I noticed that it behaves differently depending on which route the user visits a products page (and so does the breadcrumbs).

If the user visits a products page via the homepages "Featured" or "Latest" modules, the categories module will only display a single link showing the current products parent category and the breadcrumbs will show just 'home > [product name]'. However, if the user accesses a product via the category page (navbar -> category -> product) the category module will show all category links and the breadcrumbs will be 'home > category > child > [product name]'.

I'm now trying to have the categories and breadcrumbs modules show all categories and child categories within the product page (regardless of the route the user took to get there) and would greatly appreciate your help!

I noticed that the URLs are different for the same product; dependent on which route the user takes:

via "Featured" module:

index.php?route=product/product&product_id=51

via "Latest" module:

index.php?route=product/category&path=_51

via "Categories" module:

index.php?route=product/product&path=59_75&product_id=51

Does this have something to do with it? Do I need to change the 'href' values within latest.php & featured.php?:

catalog/controller/module/latest.php (line 69)

Code: Select all

'href'        => $this->url->link('product/product', 'product_id=' . $result['product_id'])
catalog/controller/module/featured.php (line 70)

Code: Select all

'href'        => $this->url->link('product/product', 'product_id=' . $product_info['product_id'])
There's two 'href' references within catalog/controller/module/categories.php:

Code: Select all

'href'        => $this->url->link('product/product', 'product_id=' . $result['product_id'])

Code: Select all

'href'        => $this->url->link('product/category', 'path=' . $category['category_id'])
Am I at least on the right track? Are the URLs dictating how the modules behave? :crazy:

Cheers

Re: Categories and Breadcrumbs Modules Help

Posted: Thu Nov 26, 2015 10:18 am
by IP_CAM
Check here for more insight information on this:
http://www.opencart.com/index.php?route ... breadcrumb
Ernie
openshop.li/cart/

Re: Categories and Breadcrumbs Modules Help

Posted: Thu Nov 26, 2015 10:22 am
by neljan
A link to buy modules?

gee... thanks.

Re: Categories and Breadcrumbs Modules Help

Posted: Thu Nov 26, 2015 11:32 am
by IP_CAM
neljan wrote:A link to buy modules?
some are free, for each Version, but you have to check all Pages, involved.

Re: Categories and Breadcrumbs Modules Help

Posted: Fri Dec 04, 2015 3:57 am
by neljan
Thanks IP_Cam, I found a free one in the end.

http://www.opencart.com/index.php?route ... _license=0

Re: Categories and Breadcrumbs Modules Help

Posted: Fri Jul 15, 2016 10:07 am
by mianbao
The long product titles in the product page are "killing" my RESPONSIVE of the page.. simply saying the page is as wide as the breadcrumbs.
I would like to remove the "productname" from the breadcrumbs at least on product page
any idea how to do this safely
Unfortunately there is no extension out that is controlling the length of breadcrumbs. So I will do manually.
Please give me a code that i can use directly, I am not experienced in coding :-[
using 2.2 OC with default theme.
Thanks