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
https://forums.phpfreaks.com/topic/199593-php-session-cart-to-checkout-question/
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.

Archived

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

×
×
  • 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.