New Zenner
- Join Date:
- Jan 2007
- Posts:
- 61
- Plugin Contributions:
- 0
Inclusion of cart into header removes cat tabs
I'm having a conflict in my site between my shopping cart in my header and the flyout category tabs mod that I added to my site. Hoping someone can help.
Per a prior site design, I just added the following code into my tpl_header.php file to get the actual shopping cart contents to show in my header:
<div id="headerCart">
<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 } } ?>
</ul>
</div>
<br class="clearBoth" />
<div>
<?php
echo '<span style="text-align:right; float:right; font-size:12px; padding-top:8px; padding-bottom:8px;">' . sprintf(($_SESSION['cart']->count_contents() == 1 ? HEADER_SHOPPING_CART_CONTAINS : HEADER_SHOPPING_CART_CONTAINS_MULTIPLE), $_SESSION['cart']->count_contents()) . '</span>';
if ($_SESSION['cart']->count_contents() != 0) {
?>
<ul id="headerCartLower">
<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>
</ul>
<?php }?>
</div>
</div>
This is situated in the file before the category tabs code to show the flyout tabs at the top of the site. The only thing I did was add this code, and added the headercart and headercartlower css to my stylesheet, but yet it is conflicting for some reason and neither the cart will show, or the flyout tabs.
Can someone help with why this is happening? Is there something within this code that would be interrupting the code for the flyout tabs mod? The main goal here is to have my shopping cart contents show in my header instead of as a sidebox.