So I get it now.. (which is why I'm responding to my own post.. :laugh:)
If you want to point your "Home" breadcrumb link to a different ZEN CART page other than the main Zen Cart page, for example:
Main Zen Cart Page: http://www.yourdomain.com/
Other Zen Cart Page to link the "Home" breadcrumb to: http://www.yourdomain.com/store_main
(In this example I am using a Zen Cart SEO add-on so the URL is a "friendly" Zen Cart URL)
Starting at around line 55 find the code highlighted in red
// 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>';
```Change as shown below (note the new path highlighted in blue added):
// 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 . '[B]store_main[/B]">' . $this->_trail[$i]['title'] . '</a>';
<http://www.yourdomain.com/index.php?main_page=page&id=3>
// 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 . '[B]index.php?main_page=page&id=3[/B]">' . $this->_trail[$i]['title'] . '</a>';
Just so it's clear ('cause I sure needed to get it straight in my head:laugh:), the change Glenn posted is how you would modify the breadcrumb file if you had both a Zen Cart store and a separate main site.
For example:
Main Site Home Page: [http://www.yourdomain.com](http://www.yourdomain.com/)
Store Main/Home Page: <http://www.yourdomain.com/store>
In this case you might want your store's "Home" breadcrumb link to point to the main site versus the Zen Cart main page..
Piggybacking on Glenn's post:
> **gjh42:**
>
> If you want to link to the base URL (www .mysite .com), just remove the
> . DIR_WS_CATALOG```php
// 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 . '">' . $this->_trail[$i]['title'] . '</a>';
If you wanted to point your Zen Cart store's "Home" breadcrumb link to another page within your main site for example:
Main Site Home Page: http://www.yourdomain.com
Other Main Site Page to link the "Home" breadcrumb to: http://www.yourdomain.com/other_page.html
// 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 . '[B]/other_page.html[/B]">' . $this->_trail[$i]['title'] . '</a>';
```Please note in this example, you MUST include the "**/**"
Alright.. done rambling now.. everyone go back to your normal programming..:laugh:
*> **DivaVocals:**
>
> Okay Glenn.. I get this..
>
> So pardon me for being dense and asking a dumb question..
>
> If I want my home breadcrumb to point to
> <http://www.mydomain.com/my_home_page>
>
> Could I do this? (and PLEASE don't laugh if this is wrong.. :smile:)
> ```php
// 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 . my_home_page '">' . $this->_trail[$i]['title'] . '</a>';
```*