-
Notifications
You must be signed in to change notification settings - Fork 2
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
As a customer I want to be able to add products to a cart so that I can purchase multiple items at once #69
Comments
I can try this issue, but currently getting this: SocketException: No connection could be made because the target machine actively refused it. HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:44388) |
You need to run the front end and api projects at the same time. You can do so by setting multiple startup projects in VS or by launching both projects manually. @ofu997 |
Tried starting a nonasync method to handle a cart object, which resulted an object instance error since the page expects there to be a Model.Products property. Is there a way to include multiple page-handlers in the same form, since this would go with the existing OnPostPurchase ? |
That OnPostPurchase was Ok because we the user didn’t need to stay on the same page. We want them to stay on the products page now, so you’d probably want to use JS (fetch) to send the request instead of posting it how we’re doing now. |
An approach I found that uses CartItems as the model behind a Cart page. Downside is that selecting the quantity of items will not be on the Products page. |
Well we will want something like that for the cart page, but here we want this similar functionality on the products page. |
Given I am a customer
When I view the product list
Then I can choose a quantity (1-99) of any product
Then I can add multiple products to a cart
The text was updated successfully, but these errors were encountered: