shchegolenkov / rs-flowershop

eCommerce app | RS School JS course final project
https://rs-flowershop.netlify.app
0 stars 1 forks source link

Shopping Cart Integration on Catalog Page #82

Closed gl-el closed 1 year ago

gl-el commented 1 year ago

Tasks:

  1. Add to Cart Functionality: Once a product is added to the cart, the "Add to Cart" button on the product card should trigger an API call to update the user's shopping cart with the chosen product.
  2. Cart Management: If the user does not yet have a cart, the API call should first create a new cart using the "MyCart" endpoint. If the user already has a cart, the API call should add the new product as a line item in the existing cart.
  3. If the product is already in the shopping cart, the "Add to Cart" button is inactive or provides a relevant notice.
  4. A loading indicator or some feedback is shown while the API call is in progress.
Mialiokhin commented 1 year ago

task 1 done

Mialiokhin commented 1 year ago

task 2 done

Mialiokhin commented 1 year ago

task 3 done

Mialiokhin commented 1 year ago

task 4 done

Mialiokhin commented 1 year ago

https://github.com/shchegolenkov/rs-flowershop/pull/84