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!
Originally Posted by
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
Bookmarks