
Originally Posted by
cleverpork
Hi. I'm hoping to add a Log In / Log Out link on the product page.
If it's ONLY for convenience, and you do indeed want them to be taken to the Login or Logout page, then yes the right file is the tpl_product_info_display.php file.
Something like the following would need to be put into the file at whatever point where you want the link to show.
Code:
<?php if ($_SESSION['customer_id']) { ?>
<a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>">Logoff</a>
<?php
} else {
?>
<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>">Login</a>
<?php } ?>
Bookmarks