Guest Posted May 1, 2006 Posted May 1, 2006 So the problem is, its showing the model number in the path, and not the product name! Anyone know if this is a standard or how one could make it render the Productname instead? :blush:
Qihun Posted May 2, 2006 Posted May 2, 2006 Find in aplication.top // add the products model to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); if (tep_db_num_rows($model_query)) { $model = tep_db_fetch_array($model_query); $breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } } and replace with if (isset($_GET['products_id'])) { $crumb_query = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$_GET['products_id'] . "' and language_id = '" . $languages_id . "'"); if (tep_db_num_rows($crumb_query)) { $crumb = tep_db_fetch_array($crumb_query); $breadcrumb->add($crumb['products_name'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $_GET['products_id'])); } } and please read this forum more close . there have answers for all your questions (especially Tips and Tricks)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.