Post by neljan » Sun Nov 22, 2015 11:23 am

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

Newbie

Posts

Joined
Fri Nov 13, 2015 8:35 pm

Post by IP_CAM » Thu Nov 26, 2015 10:18 am

Check here for more insight information on this:
http://www.opencart.com/index.php?route ... breadcrumb
Ernie
openshop.li/cart/

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by neljan » Thu Nov 26, 2015 10:22 am

A link to buy modules?

gee... thanks.

Newbie

Posts

Joined
Fri Nov 13, 2015 8:35 pm

Post by IP_CAM » Thu Nov 26, 2015 11:32 am

neljan wrote:A link to buy modules?
some are free, for each Version, but you have to check all Pages, involved.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by neljan » Fri Dec 04, 2015 3:57 am

Thanks IP_Cam, I found a free one in the end.

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

Newbie

Posts

Joined
Fri Nov 13, 2015 8:35 pm

Post by mianbao » Fri Jul 15, 2016 10:07 am

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

New member

Posts

Joined
Fri Jul 15, 2016 9:57 am
Who is online

Users browsing this forum: No registered users and 5 guests