Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

isloggedin() function


boppes

Recommended Posts

Hi all,

 

I was wondering if there is some sort of function defined in OSC that retruns a boolean value of wheater a person is logged in or not.

I want to add some content pages for my custumers with an account, and the content must differ from guests on the site.

 

So can someone help me please?

 

Thanks in advance!

 

Greeting,

 

Bob

Link to comment
Share on other sites

This bit of code:

 

<?php if (tep_session_is_registered('customer_id')) {

 

// insert code for LOGGED IN people here

 

} else {

 

// insert code for NOT LOGGED IN people here

 

}?>

 

Will get you where you need to go....

:thumbsup:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...