molly-haughey/heroku

Question- Cart page

Opened this issue · 0 comments

https://github.com/molly-haughey/heroku

What I'm trying to solve: This app is a website where users can buy succulents. There is an index page where users can view and click on the plants, which brings the user to each plant's show page. On the show page, users can buy, edit, or delete plants. There is also a link on the index page with directs you to a page that allows you to create a new plant.

Detailed description of the bug: I am getting this error once I click "Buy" on the show page, which renders the cart.ejs page, which has the errors.
Screen Shot 2020-09-22 at 3 50 06 AM

What I've tried:
https://stackoverflow.com/questions/17965956/how-to-get-element-by-class-name

https://www.youtube.com/watch?v=YeFzkC2awTM

https://github.com/WebDevSimplified/Introduction-to-Web-Development/tree/master/Introduction%20to%20JavaScript/Lesson%201

Question: How can I fix this bug and create a working cart, which will display the quantity of items, list the items, and list the prices and total price? I have a basic cart displaying but am kind of stuck.