Hello everyone.
I took a template set and made a few changes.
Everything was working great except for 1 issue. In my tpl_header.php my login/logout buttons were only displaying logout no matter if I was logged in or not.
I started troubleshooting and got myself more confused, lol!
My template has this (copied from another post here):
While trying a few variations it seemed nothing I was doing had any affect. So I removed that whole section from my includes/templates/mytemplate/common/tpl_header.php, just to test and my logout button was still appearing!PHP Code:<?php if ($_SESSION['customer_id']) { ?>
<a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> |
<a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
<?php } else { ?>
<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>
<?php } ?>
So I tried removing it also from includes/templates/template_default/common/tpl_header.php and the logout button is still appearing.
I'm lost. I can't even tell where this header template is coming from because I've removed it from everything I could find.
Please help and sorry for being so dense.



