Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Putting product name in top


ixon

Recommended Posts

Someone asked here awhile ago if they could get the poduct name into the top bit eg: catalog > memory > product name instead of the model

 

search for

// add the products model to the breadcrumb trail

replace with the following

 

  if (isset($HTTP_GET_VARS['products_id'])) {
   $model_query = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " 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_name'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id']));
   }
 }

 

im still finding out how to put all that into the title on your web browers, anyone got any ideas... gotta extract $breadcrumb somehow?

Link to comment
Share on other sites

Look for code that says something like

<title><?php echo TITLE; ?></title>

and replace with something like

<title><?php echo $breadcrumb->trail(' » '); ?></title>

Hth,

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...