Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Manufacturer name breadcrumbs

Manufacturer name breadcrumbs

Views: 2,228

Results 1 to 13 of 13
9 Oct 2014, 4:08 PM
#1
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Manufacturer name breadcrumbs

I found init_add_crumbs.php and saw "add category names or the manufacturer name to the breadcrumb trail" and "dd get terms (e.g manufacturer, music genre, record company or other user defined selector) to breadcrumb" but cannot figure out how to make it work.

Is there a way to add the manufacturers name (and possibly other stuff) to the breadcrumb trail?

ie: Home > Category > Manufacturer > Model > Product Title

10 Oct 2014, 1:50 PM
#2
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,874
Plugin Contributions:
7

Re: Manufacturer name breadcrumbs

Aeons ago I decided to set my store up with a top category as manufacturers and customised a sidebox to select them, instead of using the built-in manufacturers sidebox, that gets the breadcrumbs as you describe.

14 Oct 2014, 2:13 PM
#3
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: Manufacturer name breadcrumbs

torvista:

Aeons ago I decided to set my store up with a top category as manufacturers and customised a sidebox to select them, instead of using the built-in manufacturers sidebox, that gets the breadcrumbs as you describe.

Thank you very much for the suggestion, but there are just too many manufacturers and it would defeat the purpose of having an entire section for setting up manufacturers in zencart admin. There has to be a way to pull the manufacturers name from something like the manufacturers sidebox and put it in the breadcrumb loop.

12 Nov 2014, 10:26 PM
#4
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: Manufacturer name breadcrumbs

Is there a way to add the manufacturers name (and possibly other stuff) to the breadcrumb trail?

12 Nov 2014, 10:52 PM
#5
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Manufacturer name breadcrumbs

What version of zen cart are you using?

I get the manufacturers name in the breadcrumb trail from the manufacturers side-box.
I get the manufacturers name in the breadcrumb trail from a custom manufacturers link.
I get the manufacturers name in the breadcrumb trail from the manufacturers link on the product listing page.

pricediscrimination:

Is there a way to add the manufacturers name (and possibly other stuff) to the breadcrumb trail?

22 Nov 2014, 7:46 AM
#6
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: Manufacturer name breadcrumbs

rbarbour:

What version of zen cart are you using?

I get the manufacturers name in the breadcrumb trail from the manufacturers side-box.
I get the manufacturers name in the breadcrumb trail from a custom manufacturers link.
I get the manufacturers name in the breadcrumb trail from the manufacturers link on the product listing page.

Using v5.1

1 Dec 2014, 5:41 PM
#7
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: Manufacturer name breadcrumbs

Does init_add_crumbs.php have any options for adding stuff to the bread crumbs trail?

1 Dec 2014, 6:06 PM
#8
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Manufacturer name breadcrumbs

If you click the link in my signature for Current template project

Zen Cart v1.5.3

Home page has manufacturers carousel which demonstrates the manufacturers name getting added to the breadcrumbs

The menu in header, click Shop > Manufacturers > select a manufacturer will also demonstrate the manufacturers name getting added to the breadcrumbs

I have added a home icon, back links to the breadcrumbs by adding and editing /includes/classes/breadcrumb.php

If that helps!

init_add_crumbs.php can be used to grab additional information, it already grabs

category name, manufacturer name, products name, music genre, record company

8 Dec 2014, 7:10 PM
#9
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: Manufacturer name breadcrumbs

rbarbour:

If you click the link in my signature for Current template project

Zen Cart v1.5.3

Home page has manufacturers carousel which demonstrates the manufacturers name getting added to the breadcrumbs

The menu in header, click Shop > Manufacturers > select a manufacturer will also demonstrate the manufacturers name getting added to the breadcrumbs

I have added a home icon, back links to the breadcrumbs by adding and editing /includes/classes/breadcrumb.php

If that helps!

init_add_crumbs.php can be used to grab additional information, it already grabs

category name, manufacturer name, products name, music genre, record company

Hi thank you so much for the help. In order to add something like this to a current theme, what needs to be added to init_add_crumbs.php to grab the manufacturers name and/or model number if it exists?

15 Jan 2015, 4:59 PM
#10
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: Manufacturer name breadcrumbs

Any chance someone could please advise on getting manufacturers names to show in breadcrumbs? The stock breadcrumbs are a bit lackluster.

9 Feb 2016, 8:55 PM
#11
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: Manufacturer name breadcrumbs

Hello Zen Cart folks, I am going to bump this to the top if that's ok. Would really like to know more about init_add_crumbs.php and how to add relevant info to the breadcrumbs - especially due to the way the categories are setup to not show all the products in the main category, this would be helpful.

Thank you

10 Feb 2016, 2:45 AM
#12
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Manufacturer name breadcrumbs

You can use the built in functions for the manufacturer, I haven't fully tested this and DO NOT recommend anyone doing it on a live store.

In init_add_crumbs.php:

find:

    $breadcrumb->add($productname->fields['products_name'], zen_href_link(zen_get_info_page($_GET['products_id']), 'cPath=' . $cPath . '&products_id=' . $_GET['products_id']));

above it add:

$breadcrumb->add(zen_get_products_manufacturers_name($_GET['products_id']),  zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . zen_get_products_manufacturers_id($_GET['products_id'])));

You can add whatever you want before the products name, search your functions files for existing functions to call id and names like I did for manufactures, if they don't exist, create a function.

REMEMBER: This will most likely affect the breadcrumb trail on the reviews page as well.

Good Luck!

pricediscrimination:

Hello Zen Cart folks, I am going to bump this to the top if that's ok. Would really like to know more about init_add_crumbs.php and how to add relevant info to the breadcrumbs - especially due to the way the categories are setup to not show all the products in the main category, this would be helpful.

Thank you

19 May 2016, 12:18 AM
#13
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: Manufacturer name breadcrumbs

Just saw this reply.

After YEARS of going without the brand name in the breadcrumbs, you finally solved it. THANK YOU.

rbarbour:

You can use the built in functions for the manufacturer, I haven't fully tested this and DO NOT recommend anyone doing it on a live store.

In init_add_crumbs.php:

find:

$breadcrumb->add($productname->fields['products_name'], zen_href_link(zen_get_info_page($_GET['products_id']), 'cPath=' . $cPath . '&products_id=' . $_GET['products_id']));
> 
> above it add:
> ```php
$breadcrumb->add(zen_get_products_manufacturers_name($_GET['products_id']),  zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . zen_get_products_manufacturers_id($_GET['products_id'])));

You can add whatever you want before the products name, search your functions files for existing functions to call id and names like I did for manufactures, if they don't exist, create a function.

REMEMBER: This will most likely affect the breadcrumb trail on the reviews page as well.

Good Luck!