- Customer facing Product List (with "Add to Cart" buttons)
- Controller test for
Products#add_to_cart - Cart Relations (many carts, each has many items)
- Storing cart in session. Check the Session Guidelines
- Modify the
add_to_cartmethod to store the product in your cart. (Is it on the right controller?) - Show a cart badge on every page to show how many items are in your cart
- Create a
showpage for your cart - Total up the cost of the items in your cart (Taxes?)
- Implement remove item from cart
- Clear Session/Logout?
- Create order from cart
- Make an OrdersController
- Have the #new action show an empty form (maybe include an input to get the users email)
- Have the #create action create a new Order and copy each
cart_iteminto a correspondingline_item - Redirect the user to the #show action which shows the order that was just created
- How do we prevent "duplicate orders"?
- What happens to your shopping cart?
- Charge credit cards with stripe
- What happens when we remove a product from the catelog?
- Implement "Certain items are not combinable"
- Add a flag to the product
- Implement "not combinable" as a cart validator
- Use gem paperclip to store product photos (store in aws s3)