Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

[Cart Operation] Cannot Checkout as Guest #615

Closed
pmclain opened this issue Apr 17, 2019 · 2 comments
Closed

[Cart Operation] Cannot Checkout as Guest #615

pmclain opened this issue Apr 17, 2019 · 2 comments

Comments

@pmclain
Copy link
Contributor

pmclain commented Apr 17, 2019

Preconditions (*)

  1. Storefront with at least one product and guest checkout enabled.

Steps to reproduce (*)

Using only graphql...

  1. Create cart for guest
  2. Add product to cart
  3. Add cart shipping address
  4. Set cart shipping method
  5. Set cart billing address
  6. Set cart payment method
  7. Place order

Or execute tests added in #614

Expected result (*)

  1. placeOrder mutation should return order increment id

Actual result (*)

  1. Guest checkout currently fails with the error: GraphQL response contains errors: Guest email for cart is missing. Please enter`

I don't see path for adding the guest email to a quote via graphql.

@pmclain
Copy link
Contributor Author

pmclain commented Apr 17, 2019

A possible mutation for setting the email:

type Mutation {
  setGuestCartEmail(input: SetGuestCartEmailInput): SetGuestCartEmailOutput
}

type SetGuestCartEmailInput {
  cart_id: String!
  email: String!
}

type SetGuestCartEmailOutput {
  cart: Cart!
}

@atwixfirster
Copy link
Contributor

@pmclain pmclain closed this as completed Apr 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants