Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Logoff link nowhere to be seen


rabeck

Recommended Posts

Actually,the log off link is in your header. the My Account link changes to show Log Off and My Account once you are logged in.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Actually,the log off link is in your header. the My Account link changes to show Log Off and My Account once you are logged in.

My apologies, I meant header.php :blush: In any event, it still isn't there. After logging in the header stays the same. "My Account" remains "My Account". No logoff link.

 

Any other ideas?

 

Roy

 

I just noticed an error in the link I posted. It should be:

 

http://islanders.ca/store3/catalog

Link to comment
Share on other sites

I just created an account to check it... and you are right. :)

 

I would look at your header.php and see if you have this code

 

	<td align="right" class="headerNavigation"><?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>

the

<?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>

controls the log off link

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

I just created an account to check it... and you are right. :)

 

I would look at your header.php and see if you have this code

 

	<td align="right" class="headerNavigation"><?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>

the

<?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>

controls the log off link

 

The code is there. What file is responsible to display it? There is a file in the includes folder called sts_template.html. Does that have anything to do with it?

Link to comment
Share on other sites

Yup, more than likely. I do not know much about the sts system (i hate template systems) but in your template there should be a code for the log off link. May want to try and add $logoff next to $myaccount and see if that works. Should already be written into the template system somewhere. I think one of the files in your includes folder. So if $logoff doesn't work check the sts files in your include folder... not the includes/template file and see what the correct code is.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Well, I looked at the code. Don't know enough about it to effectivly troubleshoot it though:(

I cheated and placed a link directly in the template. That will do for now. I'll re-visit it later perhaps.

 

Thanks for your help. If you have any other ideas please let me know:-)

 

Roy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...