Closed acasey98 closed 5 years ago
@acasey98 talk with kieth about this ticket. You should both really be creating a new array for the shopping cart. talk about what that array is going to look like so he can make sure he is putting things in that array for you. That way you will know what dummy data to put in the array so you can start working
👍
User Story
As a user, I want to see the beers that I have selected for purchase displayed in cards that detail the beer name, beer image, cost per pack, and quantity selected for purchase.
AC
WHEN the checkout page is visited THEN appropriate properties of each object with quantity > 0 should be printed to the top of the DOM as BS4 cards with: beer name, beer image, price per pack, and quantity.
Development
printCart
that uses aforEach
loop to loop through theshoppingCartArray
for eachbeer
, then prints the appropriate properties (name, image, price per, quantity) to a card, but only if the 'quantity' property is greater than 0