Inspiration
We wanted a simple way to see multiple cart items across websites.
What it does
Keeps track of items added to the shopping cart on Walmart, Amazon, Macy's, and Ebay.
How I built it
We made the extension using javascript for the scripting and HTML for formatting the popup. We
Challenges I ran into
We had trouble figuring out how to detect when only the "add to cart" button was clicked (since different websites use different methods of id). We sort of got around this by hardcoding functions to search for the cart button on a few websites. We had some issues with certain websites having more problems. We also had a bit of trouble figuring out how to keep the data stored even when the popup gets closed.
Accomplishments that I'm proud of
We figured out how to keep all the data stored and got the dynamically added list of items to work. We also got it to store the URL of the product and have categories for price and quantity as well.
What I learned
It is very important to read the documentation as a lot of APIs and services have restrictions to what can be used, as well as unique ways of doing things.
What's next for ChromeCart
If we continue this, we'd probably work to add a delete function so items can easily be deleted from the cart. We'd also try to make the interface a bit cleaner and try to figure out how to add support for more websites automatically without manually coding for each website.
Log in or sign up for Devpost to join the conversation.