Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default 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

  2. #12
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default 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:
    PHP Code:
        $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 Code:
    $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!

    Quote Originally Posted by pricediscrimination View Post
    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
    Website - Github. Like the ZCA Bootstrap 4 Template? Donations Welcome. Bootstrap Plugins?

  3. #13
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default 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.

    Quote Originally Posted by rbarbour View Post
    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:
    PHP Code:
        $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 Code:
    $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!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Manufacturer name in breadcrumbs trail
    By pricediscrimination in forum General Questions
    Replies: 1
    Last Post: 26 Sep 2014, 10:07 PM
  2. v139h breadcrumbs for ezpage suddenly has a category name in it
    By delia in forum General Questions
    Replies: 5
    Last Post: 29 Feb 2012, 09:30 PM
  3. Manufacturer Name Hyperlink
    By vitalwares in forum General Questions
    Replies: 6
    Last Post: 13 May 2008, 03:50 PM
  4. manufacturer name instead of id?
    By tarynhipp in forum General Questions
    Replies: 1
    Last Post: 10 May 2008, 11:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR