blathering-barnacles / Bangazon-2

Sprint 2
1 stars 1 forks source link

Jb product detail #43

Closed jessicabarnett8219 closed 5 years ago

jessicabarnett8219 commented 5 years ago

Description:

Added the ability to view details of a single product. Steps completed: Added a URL path that takes to user to that products detail page using the product id in the url. A template that displays the product name, price, description and quantity available. (Right now that is just the original amount available, not current inventory. I broke that out into another ticket which I will do next.) A view that includes the productDetail function which queries the db for product details and renders the template. I also included a button that will eventually allow the user to add the product to their shopping cart if they're logged in.

Steps to Test:

Checkout to my branch jb-product-detail go to localhost:8000/products/1 (or the id of any products you have in your database) You should see the Name, description, price and quantity of the product.

Link to Feature Ticket: #36

Kazathur92 commented 5 years ago

👍 ✌️