-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Shipping metrod [checkout mutation] #334
Comments
@felipepxavier See this 👉 #182 |
Hi, @kidunot89 , any suggestion? using mutation: result: message: Field "cart" is not defined by type UpdateShippingMethodInput." { |
@felipepxavier I'm sorry the example in the PR summary had an error and I've fixed it. Please try the updated mutation. To clarify what changed the Also make sure you're using WooCommerce Session tokens. Read more about that [here] (#88) |
@kidunot89 hello! thanks for the feedback! But in the documentation the mutation "UpdateShippingMethodPayload" accepts:
However using "cart", it presents this message: "Field 'cart' is not defined by type UpdateShippingMethodInput. " And replacing cart for customer shows this message: "Cannot query field 'customer' on type UpdateShippingMethodPayload ".. |
@felipepxavier your input is incorrect. Look up the |
@kidunot89 so i'm using the wrong mutation, i wanted to create a "shipping method" and apply it to the request, because i have an API that returns me several shipping method, so i wanted to link only the method that the user selects .. |
@kidunot89 confirm me one thing, we were unable to create shipping methods, but "select" the existing woocomerce native methods and "link" them in orders, this? |
Yea, if you wish to create a shipping method, you have to do it through WooCommerce admin or code. WooGraphQL doesn't provide that capability, but you can use any shipping method made available through WooCommerce Shipping Method API |
@kidunot89 I understand, but how does the shipping method identify the zip code to show shipping options? Is there a "query" that receives a zip code to consult? |
query GetShippingMethods {
} @kidunot89 this query shows the options, but I still haven't figured out how to view the value of each option in this list, or if it's possible. |
@felipepxavier Use the |
@felipepxavier Any updates on this? |
Hi, @kidunot89 ! |
@felipepxavier Were you able to get the mutation working? |
Hello, I would like to know how to apply the value of the "shipping metrod", it seems to me to receive only one String, how to insert a value together in the mutation checkout? thankss
The text was updated successfully, but these errors were encountered: