Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Bread Crumb Configuration


Recommended Posts

  • 2 months later...

You will need to change some codes in catalog/includes/application_top.php.


Before getting into this, I will have to remind you that for long product names (which can go up to 64 characters), you may end up getting 2 lines of breadcrumbs instead of 1. This may be ugly to some...


After the fair warning, here's what you should do to show the product's name instead of model in the breadcrump:


First, backup the file catalog/includes/application_top.php, so that you can always roll back if you don't like the end result.


Open catalog/includes/application_top.php in a text editor.


Around lines 488-495 search for:


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

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




That's it!

Link to comment
Share on other sites

  • 1 month later...

My own little mod-


If anyone wants to do this but wants to have the product name and the model, just add in the code that Moonstone provided below the code that's commented by

// add the products model to the breadcrumb trail
instead of replacing it.


Thanks Moonstone!

Do, or do not. There is no try.


Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

  • 2 weeks later...


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

  • Create New...