To create a custom "home page" link in this header navigation bar, you could simply "hard code" the URL to your main site index page... in your case, the joomla index page.
I am assuming that currently, your JOOMLA site resides in the ROOT DIRECTORY, and the zencart shop resides in a SUB DIRECTORY.
Find this file, and FTP a COPY to your hard drive:
includes/templates/template_default/common/tpl_header.php
Find the navigation code section:
PHP Code:
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
<ul class="back">
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?>
</ul>
</div>
<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />
</div>
<!--eof-navigation display-->
Find the following line:
PHP Code:
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
And COMMENT IT OUT, using HTML COMMENT TAGS (<!-- and -->)
HTML Code:
<!-- begin edit999 <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> end edit 999 -->
Notice that I also put in begin edit999 and end edit999 inside the comment tags.
You don't have to do this, but it can be very useful later when you are looking for where you made changes. You can use the admin>>>tools>>>developer tool kit to search files for references to edit999 and that will quickly reveal the file where that edit reference number applied.
So, the 999 is a unique number I apply when I make edits to code. I keep a spreadsheet where I manually record my edit codes (from edit001 onwards) , the file they apply to and why I made the edit. I can then call up this spreadsheet to quickly see what edits I have made, where and why, right across my customised core files.
ANYWAY...
comment out that line as shown, then under it, put in your own hyperlink eg:
PHP Code:
<li><a href="http://www.YOURWEBSITEJOOMLAHOMEPAGE">Home</a></li>
SAVE the file on your hard drive, then FTP it to:
includes/templates/YOUR_CUSTOM_TEMPLATE/common/
NOTE: THIS DOES NOT CHANGE "HOME" LINKS ELSEWHERE (such as in breadcrumbs) - ONLY THE HOME LINK IN THE HEADER NAVIGATION.
----------------------------------------------------
To link from Joomla back to ZC, the "reverse" is true.
Links in joomla to the ZC shop will always be something like:
<a href="http://www.YOURWEBSITE.com/shop/index.php?main_page=xxxxxxxxxxx
where xxxxxxxxxxx is the resource you wish to link to - be it a category, a product, a page... whatever.