Instructions:

design and adhere to the requirements of the project. In addition, have a little fun and explore the possibilities of PHP as you add extra features.

Requirements:

In this project, you create the core features of a shopping cart. To get a clear idea of how the project works, take a look at the following use case: Bob needs to buy some teabags for his mobile caf. He goes to a popular online shop. Bob does not have a user account on the Web site but starts shopping anyway. He clicks the Beverages category and sees the list of teabags. He clicks the Buy link and is taken to another page, where he can choose the quantity. He selects 10 boxes of teabags and adds them to his shopping cart. When he adds them it takes him to the shopping cart page. There he can then check out. He will need to supply his shipping address and credit card information. Once he does and it is validated, he will be taken to a confirmation page stating the order has been approved and will be shipped.

Your Task:

1) Create a shopping cart application that will include up to 5 separate pages.

2)On one page (page 1) have a list of items (tea, coffee, etc.). Included in this list should be a price visible to the customer. (You can make this up). Have at least 10 items on this list. Currently this list will be static. Meaning it is hard coded in your program.

3)Allow a customer to choose 1 item only. Once selected, a button will be clicked that will take them to the quantity page.

4)On the quantity page (page 2), spell out exactly what the customer had chosen. Allow the customer to add a quantity required. Once entered, click a button that will take them to the shopping cart. Also allow the customer to go to the previous page in case they made a mistake. Once button is clicked, validate that the quantity is numeric and greater than 0. If not, allow customer to reenter. It will be required to maintain state of the form.

5)On the shopping cart page (page 3), list the item, quantity, unit price and total price (quantity * price). Allow customer to enter address that will include: street, city, state, and zip. Validate that street, city, state, and zip has been entered. Use a combo box for state. Include a button to finalize total. Allow user to cancel order. If they do, go back to page 1.

6)If the state is Ohio, then .06 sales tax must be added to total. On the process order page (page 4), total everything together including the tax. Include a button to submit order. Allow the user to cancel the order (button). If they do, go back to page 1.

7)Once the order has been submitted, go to a confirmation page thanking the customer, showing the order, and the anticipated ship time (5 business days).

8)Create one feature that is not part of the defined task.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.