Assignment 7: The Store

In this assignment you are going to build an e-commerce site. You may work alone on these assignments or in groups of 2 or 3. If you are working in a group, only one of you should submit the assignment and you should place the names of all team members in a comment at the top of your code. You should also briefly describe what each team member contributed to in terms of each part of this assignment.

Your site is going to consist of a single page with five main sections: (1) banner; (2) storefront; (3) product details; (4) cart; and (5) checkout. (You are welcome—even encouraged–to create a more complex site).

Start by looking at the demo that shows the working parts of what you will write. Don’t bother looking at the source; we have obfuscated the html code so that you cannot read it.


Complete the following three parts of the store (see the section Suggestions below for how you might organize all of these parts).

Select a name for your company. Design an attractive and informative banner that runs across the top of your site. This should be done with Javascript and the drawing functions provided by processing.js.

Storefront

Select a range of products that you will sell. These can be anything: clothing, motorcycles, food, music, services, etc. You should have at least 16 distinct products in your inventory. Create a virtual storefront that highlights each product. This should include, at a minimum, a photo of the product and the name of the product.

Product Details

When a user selects a product in the storefront, more details about that product should appear in this section. This should include the picture, name, price, description, and anything else that you’d like to add (ratings, suggestions for other products, shipping information, etc). This section should also have a “add to cart” button which when selected will add a product to the user’s cart.


Complete the cart portion of the store (see the section Suggestions below for how you might organize all of these parts).

Cart

This section should show an enumerated list of all items in the user’s cart including the item name and price. At the end of this list should be the total cost of all items in the cart and a “checkout” button which when selected will reveal the checkout section.


Suggestions

We have only provided a rough sketch of how your e-commerce store should work. We encourage you to add more features and to expand beyond the bare-bones structure that we described. Before you start coding, however, think carefully about your design, work-flow, what information you will need where, and your overall user experience.

Here are a few things that I learned when I implemented my e-commerce site. Some of these may be useful to you but don’t feel obligated to implement things the way I did — there are many perfectly valid and reasonable ways to build this site.