Greetings,
Well, I have been learning quite a bit of php but I'm still no pro at a little stuck.
http://productofasheville.com/zen-cart-v1.3.8a-full-fileset-12112007
This site will be a template (hopefully) for the rest of my sites.
Anyways, I have installed the alternative headers 1.1a mod and followed the changes to the code in another post. I also added some more code to put the cart status in the header and modified it to my liking (so far).
What I would like to do is to put the "My Account" in the top beside "Sign Up". I attempted to remove all the (correct) instances of <li></li> hoping to get them on the same line but that did not seem to work.
Here is my php code:
[SCR]
?>
<div id="headerWrapper">
<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<div id="navMain">
<ul class="forward">
<?php if ($_SESSION['customer_id']) { ?>
<li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li>
<p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><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>
<p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?> | Sign Up</a></li>
<li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></li></a>
<?php } } ?>
[/SCR]
Like I say I attempted to remove all but the first <li> and the last </li> hoping that would work, but it did not. I'm guessing it may have something to do with the fact that this code is dependent on whether or not a person is logged in?
If you can get that I have another one directly related to this too
If I add "one" of one item and "twenty" of another, my cart quantity says I have two items, when in fact I have 21. The price displays correctly but can I change the code to display the total quantity instead of item quantity (I tried, again no luck)?
[SCR]<li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>">
My Cart:<span class="style1">
<?php echo sizeof($_SESSION['cart']->get_products()); ?> Total:
<?php $header_cart = $currencies->format($_SESSION['cart']->show_total());
echo $header_cart;
?> Check Out
</span>
<br class="clearBoth" />
</li>[/SCR
Please and Thank You!!!






