
Originally Posted by
lovets
Hi,
How can i shift this whole code:
<?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 } } ?>
<li><img src="includes/templates/alysa_rounded/images/cart.jpg" class="cart-image" alt="the shopping cart" /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?> - <?php echo $_SESSION['cart']->count_contents();?> item(s) - <?php echo $currencies->format($_SESSION['cart']->show_total());?></a> | </li>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<?php }?>
out of the id=navmain?
I want to shift it out of the nav bar to the top but i realized that if i place it under navigation display my page loads with a blank page totally. I am guessing it has something to do with the IF portion because i tried shifting without that and it display fine with a text link. But i want it to work like it is when it is in the nav bar, such that the "My account" and "Log out" is only display when a customer logs in.
I have tried various way to shift them but am stuck. I am new to this and does not know about html code.
What else do i need to adjust, say in any other file, besides that section of code above? Please help!
Thank you so much! (: