Thank you.
I knew there was more to it, thus I asked.
So in order to better understand:
Would you think what you describe, or part of it, applies to the following setup as well?
PHP Code:
<?php if (zen_is_logged_in() && !zen_in_guest_checkout()) { ?>
<li class="dropdown"><a class="fz-logged-on" href="#"><i class="fas fa-user"></i> <?php echo $_SESSION['customer_first_name'] . ' ' . $_SESSION['customer_last_name'];?></a>
<ul class="sub">
<li>
<a class="nav-link" href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
</li>
<li class="fz-logoff">
<a class="nav-link fz-login-button" href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>
</li>
</ul>
</li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
One might ask, why was the language define not modified to capture that logic instead of changing the template file? Does clicking on the users name still log the user off? Do they have a way to logoff and restrict access to their personal info other than manually typing the address to do so?
If the question is directed at me, the answer is: not being a coder it didn't even cross my mind I could use language files, and even if it did I wouldn't know how. ;)
On my local test no log files generated, and by clicking on user name nothing happens, save showing the actual logoff, and my account links.
Bookmarks