Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove from cart functionality #35

Open
3 tasks done
rushilshakya opened this issue Sep 19, 2019 · 0 comments
Open
3 tasks done

Remove from cart functionality #35

rushilshakya opened this issue Sep 19, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@rushilshakya
Copy link
Contributor

rushilshakya commented Sep 19, 2019

User Story: as a user, when I go to my cart, I should be able to remove an item from the cart

Implementation:

  • create a route for remove from cart that will take an artid. get the userid from session. if userid does not exist, then send the appropriate status. get the pending order for userid from order table. then remove artid from the order
  • create a reducer component that will dispatch a thunk. if no userid, then remove item from localstorage, and dispatch action to remove from redux also
  • create a remove from cart button component that calls the thunk with the artid
@rushilshakya rushilshakya added the enhancement New feature or request label Sep 19, 2019
@rushilshakya rushilshakya added this to the TIER 1 milestone Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants