kool_samule Posted April 24, 2010 Share Posted April 24, 2010 Hi Chaps, I have a really basic shopping cart, which uses Sessions to add/update/delete/write products. My question is, what's the best way to transfer the cart/session information to a checkout stage where a user would sign in/sign up, then complete the payment? I'm guessing that when the user gets to the checkout, an 'order/order item' is created, which would need a customer id. I'm not sure how to link the session cart to a customer/order?? Sorry if this is a bit of a daft question, but I guess it's beeter to be sure before doing something stupid! Cheers Link to comment https://forums.phpfreaks.com/topic/199593-php-session-cart-to-checkout-question/ Share on other sites More sharing options...
OOP Posted April 24, 2010 Share Posted April 24, 2010 Hi there, you can have a look at this tutorial http://v3.thewatchmakerproject.com/journal/276/building-a-simple-php-shopping-cart regards Link to comment https://forums.phpfreaks.com/topic/199593-php-session-cart-to-checkout-question/#findComment-1047675 Share on other sites More sharing options...
kool_samule Posted April 24, 2010 Author Share Posted April 24, 2010 Hi, thanks for the reply. I have checked out the tutorial, and that it is basically what I have done. The user doesn't have to sign in to an account to browse and build a cart. The tutoial doesn't cover the checkout stage, where a user would sign in and then the cart contents would be added to an order, including the user id. I guess I'm after a bit of guidence to get session data into a database really. Once I have an order, I'll be (trying) to link the order info with an integrated payment system, such as PayPal. Link to comment https://forums.phpfreaks.com/topic/199593-php-session-cart-to-checkout-question/#findComment-1047726 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.