I know this is an old thread but hopefully this helps as I use a CMS program and Zencart is located in a sub directory which creates headaches with using breadcrumbs.
The reason why DrBye’s solution above does not work for me ... is located in includes > classes > breadcrumb.php
Find this If statement
Code:
// this line simply sets the "Home" link to be the domain/url, not main_page=index?blahblah:
if ($this->_trail[$i]['title'] == HEADER_TITLE_CATALOG) {
$trail_string .= ' <a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . $this->_trail[$i]['title'] . '</a>';
} else {
$trail_string .= ' <a href="' . $this->_trail[$i]['link'] . '">' . $this->_trail[$i]['title'] . '</a>';
}
You’ll notice that this statement will override the changes we make in int_add_crumbs.php as long as the title is equal to HEADER_TITLE_CATALOG or “Home”. To overcome this I made this change to breadcrumb.php
Code:
// this line simply sets the "Home" link to be the domain/url, not main_page=index?blahblah:
if ($this->_trail[$i]['title'] == HEADER_TITLE_CATALOG) {
// $trail_string .= ' <a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . $this->_trail[$i]['title'] . '</a>';
$trail_string .= ' <a href="' . $this->_trail[$i]['link'] . '">' . $this->_trail[$i]['title'] . '</a>';
} else {
$trail_string .= ' <a href="' . $this->_trail[$i]['link'] . '">' . $this->_trail[$i]['title'] . '</a>';
}
And as per DrByte's post I made these changes to the int_add_crumbs.php
Code:
$breadcrumb->add(HEADER_TITLE_CATALOG, '/home');
$breadcrumb->add('Store', '/store');
The reason I’m pointing the home page to “/home” is I’m using a Splash page and the CMS program knows “/home” is not to display the Splash page as “/” will.
Bookmarks