Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove "My Account" in brdcrmb- unless logged in


breamillman

Recommended Posts

Bah--

 

I'm just wanting the "My Account" link in the breadcrumb to not show unless returning customers are in fact already logged in.

 

I'm sure it's something easy- any help would be greatly appreciated as I know I've seen at least a mention of it here somewhere.

 

I searched about 30 different wordings and kept getting the error message less than 4 character words or whatever it says... <_<

 

 

Thanks in advance..

 

~BREA

Link to comment
Share on other sites

Bah--

 

I'm just wanting the "My Account" link in the breadcrumb to not show unless returning customers are in fact already logged in.

 

I'm sure it's something easy- any help would be greatly appreciated as I know I've seen at least a mention of it here somewhere.

 

I searched about 30 different wordings and kept getting the error message less than 4 character words or whatever it says...  <_<

Thanks in advance..

 

~BREA

 

this is the code we use to change that. Make a backup of your catalog/header.php before inserting!

 

<?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  | <a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT;?></a> <?php }else{ ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN;?></a><?php } ?>

 

I don't know how this will paste, but make sure it is all one line after inserting.

 

I don't remember if this is alredy in includes/languages/english.php.

 

define('HEADER_TITLE_LOGIN', 'Log In');

(your language may vary)

GEOTEX from Houston, TX

 

(George)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...