Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Somewhat Simple Question, Login and Logoff dynamic


Recommended Posts

Ok at my shop at http://www.music4christians.com/music/prod...?products_id=28 - Within the red navigation bar where it says cart contents I want it to say Login, however when someone is logged in it says logoff there automatically. So whenever it doesn't say logoff I would like it to say login. What do I need to change, I am guessing it would be in either my header, or application top. Thanks!

Link to comment
Share on other sites

Very nice looking site. I pulled this code out of my header. Place the code wherever you want the info to appear.




<tr class="headerNavigation2">
   <td class="headerNavigation2">  <?php echo tep_customer_greeting(); ?></td>
<td align="right" class="headerNavigation2"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation2"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?></td>


This will create a new row above or below your red nav bar. You won't have enough room within the existing nav bar because as your customers get deeper into the site, the breadcrumb trail will squeeze the display.


Let me know if you have problems

"Aliiiiive, it's alive, it's ALIIIIIIIIIIIIIVE!!!"

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...