I want to hide my Account i nthe header to only show when someone is logged in
is this possible
I want to hide my Account i nthe header to only show when someone is logged in
is this possible
I tried doign this
if !($_SESSION['customer_id']) {
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_MY_ACCOUNT; ?></span></a></li>
}
in the tpl_header file
But it dont work it just ads that int othe header area
Any ideas?
If that is exactly the code you have, then it won't work because you have not identified the "if" test as being PHP instead of HTML.
You need this:PHP Code:<?php
if !($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_MY_ACCOUNT; ?></span></a></li>
<?php } ?>