Show what each page will look like. The pages do not have to be “functional” but the design should clear.
Describe your design for your site’s shopping cart. That is, will it be a separate page that the user can view and edit, or will it be integrated into the product pages? If so, describe in detail how this will work on your site. Provide several examples of using the cart.
It will be a separate page for the cart that the items get sent to. Each product page only has one add to cart button so it can be added in bulk. I also made it overwrite instead of adding the numbers together if there is already added items. It’ll also be able to adjust the quantities in the cart in a separate form.
The cart will be an object and the products key will be inside that object as arrays. The object will be added to the session.
The checkout button will send you to the login page if there isn’t a cookie. If they user is already logged in then it’ll go to the invoice. I think a security concern is the email and name being stored in the cookie and it can be accessed.
I’ll take the name info saved in the cookie to personalize the invoice and email message.
No partners.
Assignment 3 is bringing everything together and there is a lot less code to write to do so. I’ve been taking it slow compared to assignment 2 where I was trying to do everything at once.