> For the complete documentation index, see [llms.txt](https://enappd-apps.gitbook.io/apps/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enappd-apps.gitbook.io/apps/ionic-4-full-app/pro-pack-features/woo-commerce-integration.md).

# Woo-commerce Integration

Woocommerce pages can be found at `src/app/pages/woocommerce` and the service functions can be found at`src/app/services/woocommerce`&#x20;

## Contents

* Shop Page - `woocommerce-products`

  &#x20;  Fetches all products. Filters can be used here&#x20;
* Product Detail Page - `product-details`
  * All product details shown here
* Cart Page - `cart`
  * Cart page for selected products
* Checkout - `checkout`
  * Checkout page with payment methods
* Orders&#x20;
  * Order history page for previous orders
* Order-details
  * Previous order details

### Connecting to Woocommerce

To connect the app to Woocommerce, you need the&#x20;

* Base URL - the url of your wordpress installation
* Consumer Key - Found from Woocommerce settings
* Consumer Secret - Found from Woocommerce settings

You can change these in `src/app/services/woocommerce/woo-commerce.service.ts` &#x20;

![](/files/-LcVzfKQxyL7iKCGaIGw)

### Authentication

WooCommerce includes two ways to authenticate with the WP REST API. It is also possible to authenticate using any [WP REST API authentication](http://v3.wp-api.org/guide/authentication/) plugin or method. For sake of simplicity, we have directly used `userID` for placing orders etc.

Details of authentication can be found in official [Woocommerce documentation](https://woocommerce.github.io/woocommerce-rest-api-docs/#rest-api-keys).

Similarly, check details of API parameters and models for all methods on following links

* [Shop Page](https://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-products)&#x20;

![Shop page / Products](/files/-LcVHrWzsbaRLb5Ldtan)

* [Product Detail Page ](https://woocommerce.github.io/woocommerce-rest-api-docs/#retrieve-a-product)
  * [Product attributes ](https://woocommerce.github.io/woocommerce-rest-api-docs/#product-attributes)
  * [Product attribute terms](https://woocommerce.github.io/woocommerce-rest-api-docs/#product-attribute-terms)
  * [Product Categories](https://woocommerce.github.io/woocommerce-rest-api-docs/#product-categories)
  * [Product Tags](https://woocommerce.github.io/woocommerce-rest-api-docs/#product-tags)

![Product detail page](/files/-LcVHvMiBCWcSVtgFODY)

* Checkout&#x20;
  * [Payment gateways ](https://woocommerce.github.io/woocommerce-rest-api-docs/#payment-gateways)
* Orders&#x20;
  * [Create order](https://woocommerce.github.io/woocommerce-rest-api-docs/#create-an-order)
  * [List previous orders](https://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-orders)
  * [Get an order detail](https://woocommerce.github.io/woocommerce-rest-api-docs/#retrieve-an-order)

![Order history](/files/-LcVI3iPq02MBgaLQ0S3)

![Order details](/files/-LcVI7lUetHvhuTqlT_M)

* [User related functions](https://woocommerce.github.io/woocommerce-rest-api-docs/#customers)

All these functions can be found in `src/app/services/woocommerce` in Ionic 5 Full App.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enappd-apps.gitbook.io/apps/ionic-4-full-app/pro-pack-features/woo-commerce-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
