learnshopify.dev/Workspace
js component

Both listeners are wired for you; fill in the one fetch each needs. (1) In the Remove handler (the line's `key` is already read), POST `{ id: key, quantity: 0 }` to `/cart/change.js`, then pass the returned cart to `render`. (2) In the Clear handler, POST to `/cart/clear.js` and pass the returned cart to `render`. Remember: quantity 0 is how Shopify removes a line, there's no remove route.

0 / 1 task solved
northwind-coffee.com
Live Storefront