Alen30 Posted June 29, 2004 Posted June 29, 2004 Is it possible to remove navbar title for products model example computers>>graphics cards>>Sapphire 9200>>Sapp9200-128 In this case Sapp9200-128 is a product model How can I remove product model navbar title and still to keep computers>>graphics cards>>Sapphire 9200 Thanx
damo2576 Posted June 29, 2004 Posted June 29, 2004 around line 514 in application_top change // 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'])); } } to this // add the products name to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $name_query = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'and language_id='" . $languages_id . "'"); if (tep_db_num_rows($name_query)) { $name = tep_db_fetch_array($name_query); $breadcrumb->add($name['products_name'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } } Or fiddle around as desired! Damo
Acheron Posted June 29, 2004 Posted June 29, 2004 In catalog/application_top.php: FIND: 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'])); ? ?} ?} REPLACE WITH: /* 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'])); ? ?} ?}*/ or simply remove it LOL nice timing damo ;)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.