-
-
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
Improved Documentation #223
Comments
@kvindasAB I recommend using WPGraphiQL or some GraphQL client with the ability to view the schema. You can both build and test you queries in the client and transfer them to your project once you have confirmed that they are working. |
Hello @kidunot89 I have been doing that with GraphiQL and while I understand exactly from the schema, how to call a mutation or what attributes can be queried, I'm still missing documentation on how I am supposed to use different mutations and or queries. I'm not an expert on how WooCommerce works underneath, and maybe that's why I might feel a bit lost, but I do think there is a high chance other people is my shoes. As an example, the schema has a Same happens with And also it is not obvious for a simple case scenario, if I needed to use either But I think you get my point. Some guides or redirections are needed, not for the detail on how to call a mutation, but to understand what the mutation exactly does in the backend, and how to implement specific functionality flows. Let me know your thoughts. |
@kvindasAB I'm sorry for the lack of documentation. I've got a doc site in the works. It's been a slow going process, but that because the documentation consists of a implementation tutorials for React/Apollo (Sorry, that's the stack what I'm most familiar with) and tips on usage with different UI implementation. This maybe along the lines of what you're looking for. Until it's complete, you may be able to find some noteworthy info from the devs in the WPGraphQL slack. I know a few of them have created pretty impressive applications. |
@kidunot89 as indicated in my original post, I would like to also offer my help to improve the documentation, again if its something that might work. In any case, let me know |
@kidunot89 I'm very familiar with React/Apollo and I'd be happy to help create examples! At the moment, I'm having a hard time understanding how I should be implementing checkout. How should I collect credit card info? If I'm using Stripe as a payment gateway, I could imagine obtaining a "token" on the frontend using Stripe Elements. However I'm unsure how to pass this information back to Woocommerce to complete the checkout process. Any pointers would be much appreciated! Thank you for your work on this project 🙏 |
@trevorblades There are multiple ways to process user order. Managing User session
Checking Out ~ this is typical done after the submit button is clicked on the checkout pageThere are current two ways of processing your order. Method 1 - (recommended)
Method 2
|
@trevorblades @kvindasAB I would also recommend viewing the PR summary notes for releases. I put a lot of examples/documentation in the PR summaries. Be sure to click on the links to the sub-PRs. I break release PRs into smaller PRs and those PRs have the examples and documentation. |
@kidunot89 thank you so much for the detailed explaination and PR links! |
@kidunot89 Why don't start by creating a small documentation, maybe in something as simple as a markdown, with the information you posted in this comments. I can help creating a first version of it, and you can of course review it in a pull request, but again, I think this is very basic information the project is missing. Let me know if this is something you would find interesting. |
@trevorblades Please note that currently @kvindasAB I will once I have something to put up. |
@trevorblades See this |
Thanks @kidunot89! |
Hello Guys,
Thanks a lot for the great effort on this module.
I'm currently implementing an ecom in WooCommerce/Gatsby and found the wp-graphql project which is great.
But while trying to use it, in specific the WooCommerce project I have been pretty much guessing how I'm suppose to use it.
At the moment seems that I have understood well, but I have seen that documentation is definitely lacking.
I'm no PHP programmer, but wanted to offer a hand on improving documentation if that might work.
The text was updated successfully, but these errors were encountered: