ginalamp / TCGPlayer

Beta store for TCG player whereby sellers can upload MTG cards to sell, and buyers can sell MTG cards
1 stars 0 forks source link

Cart start #107

Closed ginalamp closed 3 years ago

ginalamp commented 3 years ago

Changes

  1. Added cart field in the Profile model (many-to-many field of CardListing)
  2. Add basic "add to cart" button to individual card listing
  3. ^ works (adds to cart and redirects user to their cart page)
  4. Cart page links listed cards back to their card listings

What still can be done

Cart page

When clicking on the card listing it takes the user to that listing

image

Card listing

When clicking on the "add to cart" button, it adds the cardlisting to the user's cart (if it isn't in their cart already) and directs the user to the cart page

image