
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'])
Code: Select all
'href' => $this->url->link('product/product', 'product_id=' . $product_info['product_id'])
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'])

Cheers