You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. (Optional) Install & activate [WPGraphQL-JWT-Authentication](https://github.com/wp-graphql/wp-graphql-jwt-authentication) to add a `login` mutation that returns a JSON Web Token.
10
-
4. Clone or download the zip of this repository into your WordPress plugin directory & activate the **WP GraphQL WooCommerce** plugin
9
+
3. Clone or download the zip of this repository into your WordPress plugin directory & activate the **WP GraphQL WooCommerce** plugin.
10
+
4. (Optional) Install & activate [WPGraphQL-JWT-Authentication](https://github.com/wp-graphql/wp-graphql-jwt-authentication) to add a `login` mutation that returns a JSON Web Token.
11
+
5. (Optional) Install & activate [WPGraphQL-CORS](https://github.com/funkhaus/wp-graphql-cors) to add an extra layer of security using HTTP CORS and some of WPGraphQL advanced functionality.
11
12
12
13
## What does this plugin do?
13
14
It adds WooCommerce functionality to the WPGraphQL schema using WooCommerce's [CRUD](https://github.com/woocommerce/woocommerce/wiki/CRUD-Objects-in-3.0) objects.
-Add items to cart and process user store session using HTTP header defined by WooGraphQL's built-in session handler
18
-
- Create/process user checkout with the `checkout` mutation.
17
+
- Query **product**, **product variations**, **customers**, **coupons**, **orders**, **refunds** and **more** with complex filtering options.
18
+
-Manipulate customer session data using customer and cart mutations while managing customer session token using HTTP headers or cookies *(not recommended)*. *[HTTP header example w/ React/Apollo](https://github.com/wp-graphql/wp-graphql-woocommerce/pull/88)*
19
+
- Create orders using the `order` mutations with the `checkout` mutation.
19
20
20
21
## Future Features
22
+
- Payment Processing
21
23
- Adminstrator mutations. Eg. Creating and deleting products, coupons, and refunds.
22
24
23
25
## Playground
@@ -84,14 +86,16 @@ If you use the command with at least a `suite` specified, **Codeception** will r
84
86
85
87
To learn more about the usage of Codeception with WordPress view the [Documentation](https://codeception.com/for/wordpress)
86
88
87
-
## Functional and Acceptance Tests (Docker/Docker-Compose required)
89
+
## Functional and Acceptance Tests (Docker && Docker-Compose required)
88
90
It's possible to run functional and acceptance tests, but is very limited at the moment. The script docker entrypoint script runs all three suites (acceptance, functional, and wpunit) at once. This will change eventually, however as of right now, this is the limitation.
89
91
90
92
### Running tests
91
-
Even though the two suite use a Docker environment to run, the docker environment relies on a few environmental variables defined in `.env.dist` and a volume source provided by the test install script and the configuration `codeception.dist.yml`. If you have created a `codeception.yml` file ensure it is identical to `codeception.dist.yml`or delete it.
93
+
Even though the two suites use a Docker environment to run, the `testing` service in the `docker.compose.yml` file requires the `.env.dist` and `codeception.dist.yml`untouched.
92
94
Run the following in the terminal to run all three suites. Isolating specific suites should be simple to figure out.
- The `COVERAGE`, and `DEBUG` vars are optional flags for toggle codecoverage and debug output.
97
101
-`--scale app=0` ensures that the service running a local app doesn't create any instances. It must be added or a collision with `mysql` will occur. More on this service in the next section
@@ -118,6 +122,4 @@ If you get HTTP 500 error upon activation or accessing the `endpoint` and have *
0 commit comments