Description
There are multiple problems with the current cart functionality and UI:
-
Cart allows adding items without login
- Users can add products to the cart without being authenticated.
- This breaks the expected flow where the cart should be tied to a user account.
-
"Add to Cart" button styling missing
- The button appears as a plain HTML button.
- It does not match the app’s design system (colors, padding, hover effects, etc.).
-
Cart total price not updating correctly
- Adding more than one unit of the same product does not increase the total price.
- Example: Adding 2 items still shows the price for 1 item.
Steps to Reproduce
- Open the app without logging in.
- Add a product to the cart.
- Observe that it gets added without authentication.
- Check the "Add to Cart" button styling.
- Add the same product multiple times.
- Observe that the price does not update accordingly.
Expected Behavior
- Users should be required to log in before adding items to the cart.
- The "Add to Cart" button should follow the app’s UI design.
- Cart total should increase correctly with multiple quantities.
Description
There are multiple problems with the current cart functionality and UI:
Cart allows adding items without login
"Add to Cart" button styling missing
Cart total price not updating correctly
Steps to Reproduce
Expected Behavior