Skip to content
Snippets Groups Projects
Unverified Commit 66453ad3 authored by Réthelyi Bálint's avatar Réthelyi Bálint :no_mouth:
Browse files

It's not working properly currently!!!

Add functionality to shopping cart feature in cart.js

Implemented `addToCartClickHandler` function in cart.js for handling cart item additions. This feature enables users to add items from product select options to the cart, specify the quantity, and delete items as necessary. The Add to Cart button is moved to each new item line for better UX. In this commit, prevent default behaviour on form submission and set up an async POST request using Fetch API to send the cart information to the server. This update improves the shopping cart usability and efficiency in processing cart data.
parent 79cd1c1c
No related branches found
No related tags found
1 merge request!25Add API endpoints and middleware for user and product manipulation
Pipeline #45032 failed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment