Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

whats new here?


davejones

Recommended Posts

Posted

i used this:

 

http://wiki.oscommerce.com/TextSearch?phra...atBoxGenCatName

 

to help me sort out the category names.

 

i used the easit method they describe:

 

1. In catalog/include/classes/breadcrumb.php add the following subroutine:

 

// start of added code for category/subcategory names

function last() { $trail_size = sizeof($this->_trail); return

 

$this->_trail[$trail_size-1]['title']; }

// end of added code

I added it after:

 

function breadcrumb() {

      $this->reset();

    }

 

    function reset() {

      $this->_trail = array();

    }

In in catalog/index.php (back it up first!), change the first 2 occurrences of HEADING_TITLE (line 66 & line 232).

 

From:

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

To:

 

<td class="pageHeading"><?php echo $breadcrumb->last(); ?></td>

 

 

This way will require more changes but just a few.

 

but on my main page i get the "whats new here?" on there.

how do i remove this?

 

my webbie is: http://www.thepccentre.com/online

Archived

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

×
×
  • Create New...