issues
search
gioboa
/
qwik-dream-demo
https://qwik-dream-demo.pages.dev/
28
stars
11
forks
source link
Shopping cart
#8
Closed
nnelgxorz
closed
2 years ago
nnelgxorz
commented
2 years ago
Adds a cart component.
The cart is a simple dropdown.
It shows a quantity in the upper right of the button when cart items are greater than 0.
Cart items can be added via a document "additem" event.
The Cart fires a document "itemAdded" event when an item is added.
If a cart item's quantity is decremented to 0, it is removed from the cart.
Todo:
[ ] Preview command fails for cart component.
[ ] Styling is lackluster.
[ ] Weird bug with item quantity decrementing.
[ ] Integrate into host header (once preview command is fixed)
Adds a cart component.
The cart is a simple dropdown.
Todo: