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

[Checkout coverage] setGuestEmailOnCart mutation #564

Merged
merged 7 commits into from
Apr 17, 2019

Conversation

rogyar
Copy link
Contributor

@rogyar rogyar commented Apr 3, 2019

Description (*)

This PR introduces a possibility to set email for a guest quote. This step is necessary in case if an order is being placed for a guest.

Manual testing scenarios (*)

  1. Create an empty cart as a guest user
  2. Assign email to the quote in the following way
mutation {
  setGuestEmailOnCart(input: {
    cart_id:"$maskedCartId"
    email: ""
  }) {
    cart {
      guest_email
    }
  }
}

@ghost
Copy link

ghost commented Apr 17, 2019

Hi @rogyar, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@atwixfirster
Copy link
Contributor

Assign email to the quote in the following way

mutation {
  setGuestEmailOnCart(input: {
    cart_id: "$maskedQuoteId"
    email: "$email"
  }) {
    cart {
      email
    }
  }
}

@keharper
Copy link
Contributor

Added documentation in magento/devdocs#4502

@lenaorobei lenaorobei deleted the set-guest-email-mutation branch September 10, 2019 19:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants