fenton1000 / mf-portfolio-five-big-boring-shop

0 stars 1 forks source link

USER STORY: Shopping Cart #6

Closed fenton1000 closed 1 year ago

fenton1000 commented 1 year ago

As a Visiting User I can add items to a shopping cart so that after choosing an item to potentially purchase I can continue to look at other items, add further items, and keep track of the overall potential total.

fenton1000 commented 1 year ago

Acceptance Criteria:

  1. When viewing a product in the product detail view an option to add to cart is provided.
  2. A shopping cart icon and a running cost total is provided at the top of the screen.
fenton1000 commented 1 year ago

Tasks:

  1. Create a cart app within the project.
  2. Use Django sessions features in the views.py file of the cart app to temporarily store the cart as items are added and track the current grand total.
  3. Add button to product detail view that calls on the sessions features to add products.
  4. Render the current total to the base.html header.