How to add item to cart

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cruse
Forum Newbie
Posts: 9
Joined: Fri Jul 05, 2002 11:06 am
Location: VA

How to add item to cart

Post by cruse »

I am working on a very basic shopping cart.
How do I add the item when the 'add button' is clicked?

And would I put each item in an array to track total cart contents?

Thanks,
Cruse
will
Forum Contributor
Posts: 120
Joined: Fri Jun 21, 2002 9:38 am
Location: Memphis, TN

Post by will »

read the docs for that specific cart... every one is different.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

There are loads of different ways of doing this and it's personal preference as to which one you choose. You might want to check out a shopping cart tutorial (fairly sure there's one on phpbuilder.com) or reverse engineer a cart from hotscripts.com.

Mac
Post Reply