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

Add number input & button to product list to add a product to the cart #86

Open
Tracked by #69 ...
valincius opened this issue Nov 16, 2021 · 3 comments
Open
Tracked by #69 ...
Labels
razor anything related to the razor pages task Describes a child task of a user story

Comments

@valincius
Copy link
Member

valincius commented Nov 16, 2021

On the products page, replace the "Purchase" button with "Add to cart" button along with a number to change the quantity that we're adding to our cart.

@valincius valincius added razor anything related to the razor pages task Describes a child task of a user story labels Nov 16, 2021
@Rich-Dunne Rich-Dunne self-assigned this Nov 24, 2021
@Rich-Dunne
Copy link

To clarify, is the expectation for this issue to simply change the text on the button and add a number input for quantity, or is it also implied that the functionality be wired up so that when the button is pressed, the cart is updated?

@pobiega
Copy link
Collaborator

pobiega commented Nov 26, 2021

Once #87 is merged, there will be an API endpoint that does this, so changing what the button does to calling that endpoint instead should do the trick.

@Palisar
Copy link
Contributor

Palisar commented Nov 26, 2021

@Rich-Dunne You can check out the PR for #87 to see how it is working to give you some context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
razor anything related to the razor pages task Describes a child task of a user story
Projects
None yet
Development

No branches or pull requests

5 participants