Click to See Complete Forum and Search --> : Shopping Cart-add/edit/delete products in cart.


william232
09-11-2006, 04:47 AM
hi,all

i am just wondering,

but

if the user add products to a shopping cart and when they are ready to order goes and register how can i make it so it displays the products in the session before the user registered would it make a new one or be a same because i wanna make it so when the user has registered it displays the products in the session but just unsure on how to go about it ive tried to see but how do i intergreate add to cart button to add to the cart aswell? even if the user isnt registered or logged in?

deepnov
09-12-2006, 05:07 AM
You can store the products in a shopping cart table with
a cart id as primary key and once he registers you can
transfer it to order details table and then clear the shopping cart
table.

Or else if no. of products lesser use cookies for storing products.

william232
09-12-2006, 05:17 AM
how would i go about that any idea maybe u can write an example of what you mean please.

Reli4nt
09-12-2006, 08:11 AM
just download some of the major open source carts and look at how they do it. Oscommerce and phpcart are 2 big ones.