Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Name of product in menu path


djavet

Recommended Posts

Hello,

 

I wish to have the product name instead of the model in the menu path:

Haut ? Catalogue ? Asie ? Divers ? orch00509

 

Is that possible? I can't find where I must change this!

 

Many thx for your time and help,

Dominique

Link to comment
Share on other sites

  • 4 months later...

Hello,

 

Yop, check this:

-> http://www.orchidarium.ch/dev/catalog/prod...roducts_id=2485

 

In the file "application_top.php" find around line 527:

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

 

and replace with:

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

 

Not that we change the product_model into product_name only.

 

Hope that willl help, fo me yes :P

 

See ya, Dom

Link to comment
Share on other sites

you have to change the file includes/application_top.php around the line 489

 

from this:

 

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:

 

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...