NoMise_Store icon indicating copy to clipboard operation
NoMise_Store copied to clipboard

Complete the Cart Functionality

Open AlphaDecodeX opened this issue 2 years ago • 6 comments

  • Align +, - buttons in cart correctly
  • analyze the edge cases in cart. for ex. User can't add items more than the stock available, User can not click on Buy and add to cart if there is no stock

AlphaDecodeX avatar May 10 '23 10:05 AlphaDecodeX

I can do it

MZHoffman avatar May 10 '23 10:05 MZHoffman

Yes, you can pick this up.

  • create a new branch
  • you can use this board to update your progress
  • Should i assign this to you ?

AlphaDecodeX avatar May 10 '23 10:05 AlphaDecodeX

Yes please. Assign this one to me

MZHoffman avatar May 10 '23 10:05 MZHoffman

First i need to fix issue with adding multiple same products to the cart.

Image

I will do this first and submit PR so we know if you ok with it

MZHoffman avatar May 10 '23 14:05 MZHoffman

Fix for the above https://github.com/AlphaDecodeX/NoMise_Store/pull/8

MZHoffman avatar May 10 '23 14:05 MZHoffman

🚀 Till now:-

✅ Added Redux functionality to the CartService, where whenever you'll click on ADD_PRODUCT, we will dispatch an event and add that product into a set (to remove duplication) and it is happening under cartService.ts

🧐 You can go through its flow to see the working and similar flow can be implemented for REMOVE_PRODUCT, ADD_QUANTITY_OF_PRODUCT, SUBSTRACT_QUANTITY_OF_PRODUCT etc

AlphaDecodeX avatar May 13 '23 07:05 AlphaDecodeX