thank you! This didn't work out of the box on 6.4.1a but just had to do a little updating to make it work
Replace this
Code:
// add the products model to the breadcrumb trail
if (isset($_GET['products_id']) && $_GET['products_id'] != '') {
$products_id = (int)$_GET['products_id'];
$model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . $products_id . "'");
if (tep_db_num_rows($model_query)) {
$model = tep_db_fetch_array($model_query);
if (tep_not_null($model['products_model'])){
$breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $_GET['products_id']));
}
}
With this
Code:
// add the products name to the breadcrumb trail
if (isset($_GET['products_id']) && $_GET['products_id'] != '') {
$products_id = (int)$_GET['products_id'];
$name_query = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $products_id . "'");
if (tep_db_num_rows($name_query)) {
$prod_name = tep_db_fetch_array($name_query);
if (tep_not_null($prod_name['products_name'])){
$breadcrumb->add($prod_name['products_name'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $_GET['products_id']));
}
}