Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Editing Breadcrumbs


Ylja

Recommended Posts

Posted

Now when I click a product, the model n? is shown in the breadcrumbs, this is just ugly, how can I get rid of that? :s

 

Hoofdpagina ? Winkel ? Floppy Drives ? FLOPINTBL

Posted
Now when I click a product, the model n? is shown in the breadcrumbs, this is just ugly, how can I get rid of that? :s

 

Hoofdpagina ? Winkel ? Floppy Drives ? FLOPINTBL

 

 

you have this in application top (at the bottom):

 

// 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']));

}

}

 

remove that or comment it out.

Treasurer MFC

Archived

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

×
×
  • Create New...