PDA

View Full Version : Display Product Name in BreadCrumbs



michael_s
03-27-2013, 12:53 PM
goto catalog/includes/application_top.php

Search for Around line 489:

if (isset($HTTP_GET_VARS['products_id'])) {



Change:

$model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");

To:

$model_query = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'and language_id = '" . (int)$languages_id . "'");

Change:

$breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id']));

To:

$breadcrumb->add($model['products_name'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' .
$HTTP_GET_VARS['products_id']));

More... (http://addons.oscommerce.com/info/4354)