Shopping cart in OOP
Moderator: General Moderators
Shopping cart in OOP
Hello,
I am looking for a complete shopping cart tutorial from db design to checkout using OOP. Can anyone suggest me a book or a link which gives full tutorial.
Thanks
I am looking for a complete shopping cart tutorial from db design to checkout using OOP. Can anyone suggest me a book or a link which gives full tutorial.
Thanks
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Typically you have a Cart class and a CartItem class. You save the Cart object in the session and it contains an array of CartItems. Just start with addItem() and deleteItem() in the Cart and the start adding features to support actual products. Post some code and we can walk through the design.
(#10850)
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
No idea what you just said.thatsme wrote:To start, the admin should add, edit, delete, view, list_view category, subcategory, product.
You lost me after 'add, edit, delete, view.'
I usually program the user system first (or very early on) since everything is based off of it.thatsme wrote:Before doing these tasks he has to login.
Not necessarily. Unless you are programming locally and then switching it to a server later on, in which case it would make the switc as simple as editing the configuration file.thatsme wrote:I also have to make configuration file for the site.
Re: Shopping cart in OOP
the admin will be,
adding category, editing category, viewing category, deleting category, list_category
adding sub_category, editing sub_category, viewing sub_category, deleting sub_category, list_category
adding products, editing products, viewing products, deleting products, list_category
adding category, editing category, viewing category, deleting category, list_category
adding sub_category, editing sub_category, viewing sub_category, deleting sub_category, list_category
adding products, editing products, viewing products, deleting products, list_category
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Shopping cart in OOP
I don't really consider that stuff to be part of the shopping cart (except the viewing ones). Those features are general CRUD pages in the admin area.
(#10850)