Jump to content

PHP (Session) Cart to Checkout question


kool_samule

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.