I want to make a simple shopping cart using oop.
The table structure is:
category
cat_id
cat_name
sub_category
sub_cat_id
cat_id
sub_cat_name
product
sub_cat_id
product_id
product_name
product_qty
product_price
product_image
size
size_id
size_name
member
member_id
member_name
member_name
member_country
member_state
member_city
member_zip
member_address
cart
cart_id
product_id
size_id
qty
order
member_id
order_status
order_date
As this is the first attempt in OOP, i am not sure which method should go to which class?
shopping cart
Moderator: General Moderators
I'm no OOP expert (in fact, just beginning)
I'd start with a base class with a method to addItem()
I'd start with a base class with a method to addItem()
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.