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

Connect Add To Cart Button to GraphQL mutation #95

Closed
kieckhafer opened this issue May 17, 2018 · 1 comment
Closed

Connect Add To Cart Button to GraphQL mutation #95

kieckhafer opened this issue May 17, 2018 · 1 comment
Assignees
Milestone

Comments

@kieckhafer
Copy link
Member

kieckhafer commented May 17, 2018

The PDP page Add To Cart button (#94) is currently just a UI placeholder. We need to connect the button to our GraphQL endpoint (which currently doesn't exist) and pass the data as needed.

Additionally we'll need to trigger showing the mini-cart after an item has been successfully added to the cart.

This ticket needs to deal with the logic around deciding whether to call createCart or addCartItems.

@spencern spencern added this to the Humbolt milestone Jun 22, 2018
@spencern spencern changed the title Connect data / GraphQL to the Add To Cart Button on PDP Connect Add To Cart Button to GraphQL mutation Jun 22, 2018
@spencern spencern modified the milestones: Humbolt, Isolation Jul 10, 2018
@aldeed
Copy link
Contributor

aldeed commented Jul 12, 2018

This should be unblocked if you work against this branch until it's merged: reactioncommerce/reaction#4412

See the comments in that PR for example mutations and variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants