minghoo Posted January 12, 2007 Share Posted January 12, 2007 Hi guys, I put register text link in the header, here is the code: <a href="<?php echo tep_href_link(FILENAME_CREATE_ACCOUNT); ?>" ><?php echo HEADER_TITLE_REGISTER; ?></a> how can i hide the register text link when customer logged in? i know the following code is show text link when customer logged in. <?php if (tep_session_is_registered('customer_id')) { ?> <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" ><?php echo HEADER_TITLE_LOGOFF; ?></a> <?php } ?> Thanks Sean My contributions: EZ new fields easy way add Qty box in your product_info.php Link to comment Share on other sites More sharing options...
Guest Posted January 12, 2007 Share Posted January 12, 2007 you do the same thing so: <?php if (!tep_session_is_registered('customer_id')) { ?> <a href="<?php echo tep_href_link(FILENAME_CREATE_ACCOUNT); ?>" ><?php echo HEADER_TITLE_REGISTER; ?></a> <?php } ?> Or even better you could use and if-else statement and display the options depending if the customer is logged in or not. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.