/    Sign up×
Community /Pin to ProfileBookmark

Shopping Cart-add/edit/delete products in cart.

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?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@deepnovSep 12.2006 — 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.
Copy linkTweet thisAlerts:
@william232authorSep 12.2006 — how would i go about that any idea maybe u can write an example of what you mean please.
Copy linkTweet thisAlerts:
@Reli4ntSep 12.2006 — just download some of the major open source carts and look at how they do it. Oscommerce and phpcart are 2 big ones.
×

Success!

Help @william232 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...