Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hide the login box after logged in?


wangchao

Recommended Posts

Posted

Hi, guys,

 

 

I have someone to tailed a website at http://www.esilk.biz/ The website looks great at the first glance. However, I found something has to be improved.

 

The problem is about the login box. It is cool for visitor's first impression. However, it looks a little stupid after the user logged in. The user can log in for another time after she/he is logged in? I am afraid this would give the visitors some negative psychological effect.

 

So, I'd like to make some change to HIDE the login box/Register/Forgot PIN items. Instead, I will show something like "Smith, you have logged in, click here to logout", after some one actually logged in.

 

Can someone give me some ideas?

 

 

Thank you

Wang Chao

-David Wang

Posted

I cant see your code, but you can control what you show like this:

 

  if (!tep_session_is_registered('customer_id')) {
 
 echo 'login stuff';
 
 } else {
 
 echo 'something else';
 
 }

Archived

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

×
×
  • Create New...