Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to integrate website members as default OSC account


redhatguy

Recommended Posts

I want to integrate my website members as default osecommerce members. What this means is that when members login into my website, they are by default also able to shop without having to login to oscommerce again.

 

Its a little bit tricky and I have been trying to do this myself. I want to do away with the dual login process as in website member account and osc account. Has anyone tried this and willing to help me out.

 

In short my web members will by default hold oscommerce accounts too.

HELP! URGENT!!!

Link to comment
Share on other sites

I have the same problem, don't want dual logins. Already have a mysql with members table with non-encrypted passwords. Wish both osC and regular website members could share the same members table w/ its email/passwords.

 

Would it be possible to remove password encryption? What would be the security risk?

Link to comment
Share on other sites

I just got finished doing this. It required fairly extensive changes to the osCommerce script, and also some changes to the script that handles the site registration/login.

Link to comment
Share on other sites

if you have a look in catalog/create_account_process.php

 

at the top you will see

 

$gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);

 $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);

 $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);

 $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']);

 $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);

 

etc

 

you need to copy this file to something else such as create_account_from_member.php and pass all the required variables from a form in your member login page.

 

You need to snip the file after this line:

 

tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . tep_db_input($customer_id) . "', '0', now())");

 

and add a redirect to your success/fail page

 

Have a go yourself - If you can't manage it I will write it for you.

Link to comment
Share on other sites

meltus that was a good tip for a start. i need to dig deep into the codes. dave sure you did it... how about sharing what you did... or provide some tips and tricks...

 

thanks guys!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...