Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing navbar title-products model


Alen30

Recommended Posts

Posted

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

Posted

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

Posted

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 ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...