Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HEADER HELP


raggy

Recommended Posts

Posted

Hi I have a problem

 

when you enter my store you have the following in my header:

 

Login | View Basket | Checkout

 

when you log in this should change to

 

Logoff | my account | View Basket | Checkout

 

but when i log in it still shows

 

Logoff | login | View Basket | Checkout

 

How do i fix this?

\3

Thanks for your help

Posted

Hi

Back up your file first

 

About line 64 on your header.php

 

Replace the code with

 

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { } else {echo '<a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '"class="headerNavigation">' . HEADER_TITLE_LOGIN . '</a>  ';} ?> <?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>    <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>    <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>    <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a></td>

 

 

It adds a Log in text that is replaced by a Log off text once the user logs in, and returns to a Login state upon Log off.

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Archived

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

×
×
  • Create New...