Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Category Name and Product Model


Vger

Recommended Posts

I know I'm usually answering questions - but tonight I've got one. I have a site which I want to remove the Category Name and Model Number from the breadcrumb trail after a product has been added to the shopping basket. I've searched the files, and the forums, and can't find what I need to edit to remove these from the trail.

 

Anyone know the answer I'd appreciate it.

 

Vger

Link to comment
Share on other sites

I know I'm usually answering questions - but tonight I've got one.  I have a site which I want to remove the Category Name and Model Number from the breadcrumb trail after a product has been added to the shopping basket.  I've searched the files, and the forums, and can't find what I need to edit to remove these from the trail.

 

Anyone know the answer I'd appreciate it.

 

Vger

 

wouldn't you just hack this bit ?

 

// add category names or the manufacturer name to the breadcrumb trail
 if (isset($cPath_array)) {
   for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) {
     $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . $cPath_array[$i] . "' and language_id='" . $languages_id . "'");
     if (tep_db_num_rows($categories_query) > 0) {
       $categories = tep_db_fetch_array($categories_query);
       $breadcrumb->add($categories['categories_name'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1)))));
     } else {
       break;
     }

 

if you dont want to remove for the whole site, you could do a quick check to see if there is something in the cart and do a different path if that is the case?

Link to comment
Share on other sites

Thanks very much. I did look in application_top but I guess my eyes must have been getting glazed over after all of the other files I looked in. Thanks again - thread closed - problem solved.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...