Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Connecting my osCommerce site w/my main site


MikeBruin

Recommended Posts

Posted

Hello, I am new to the forums and to osCommerce in general. Here is what I'm trying to accomplish and please let me know if it's even possible.

 

I would like users coming to my site to create their login via osCommerce.

 

When they return, I would either a.) like them to login through osCommerce and using session variables ok access the "member pages" or b.) have an additional login page but access the customers table to retreive the login information. (preferred method)

 

Let me explain my issues with each and you can tell me if I'm just plain crazy!

 

a.) Every site I've written lets me us $_SESSION['variable'], osCommerce does not. When i try to use the tep_session function to call that session variable, it doesn't work. Additionally in login.php I try to save the session variable using $_SESSION['customer_id'] = $customer_id. Then when I goto a page outside osCommerce it can't see it.

 

b.) In the database, in the customers table, it appears the password is encrypted or not displayed that I can know what it is, which is fine. But if I create another login screen to access this info, I need the algorithm used to "decrypt" the password so i can authenticate the user. Where can I find the code to accomplish this.

 

Any help would be greatly appreciated as I have spent the last several hours trying to figure this out, and have gotten nowhere.

 

Thanks in advance,

Mike

Posted

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 >

Archived

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

×
×
  • Create New...