thomashw Posted January 9, 2008 Share Posted January 9, 2008 I've found books/online reading that goes into either how to let users log-in to your website, or how to set-up a shopping cart. What I'm interested in is integrating both. I want users to have to log-in while checking out, which will call their information from the database (name, address, etc.) I know how to get the information written to the database, but I'm just not sure how to integrate both together. Does anyone have any good links which integrates both, or have any advice? Quote Link to comment Share on other sites More sharing options...
teng84 Posted January 10, 2008 Share Posted January 10, 2008 if you know how to use session then you should be fine. the logic goes something like this: when the user log get the user id store that id in session use that session to query your database as simple as that Quote Link to comment Share on other sites More sharing options...
simcoweb Posted January 10, 2008 Share Posted January 10, 2008 There's literally 100's of PHP based shopping carts available that you could further customize. But, most have login features already and work off databases. Unless, of course, you want to code the whole thing yourself. http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/index.html Quote Link to comment Share on other sites More sharing options...
Pancake Posted January 10, 2008 Share Posted January 10, 2008 If you're new to PHP, then don't handle people's credit card numbers Use something like PayPal Quote Link to comment Share on other sites More sharing options...
teng84 Posted January 10, 2008 Share Posted January 10, 2008 If you're new to PHP, then don't handle people's credit card numbers Use something like PayPal sorry mate but i think your answer is off topic Quote Link to comment Share on other sites More sharing options...
thomashw Posted January 10, 2008 Author Share Posted January 10, 2008 If you're new to PHP, then don't handle people's credit card numbers Use something like PayPal I won't be handling credit card numbers right off the bat, don't worry. I'll take a look at that hotscripts site when I have a chance. Thanks! If anyone has any more information/advice, I'd really appreciate that too. Quote Link to comment Share on other sites More sharing options...
nikefido Posted January 10, 2008 Share Posted January 10, 2008 osCommerce is an open source e-commerce app that's free - check them out at least for ideas on how to do it properly (if making a large-ish application)... it get's kinda complicated with the code so it might not be of total use for you, but it's there as a resource/tool none-the-less Quote Link to comment Share on other sites More sharing options...
thomashw Posted January 10, 2008 Author Share Posted January 10, 2008 I've got an install of OScommerce which I've been looking at from time-to-time. The way they code some things I don't understand, but it has been helpful in setting up my database. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.