# How to integrate with WooCommerce

## Install WordPress & WooCommerce

* Go to WPAdmin, click on Plugins -> add new, and search WooCommerce

<figure><img src="/files/jh6V8WBmSCHmev9V5fRP" alt=""><figcaption></figcaption></figure>

* Install & active WooCommerce plugin.&#x20;
* Search "header and footer", and install WPCode

<figure><img src="/files/9SDwJK5o1VOrQklElWgy" alt=""><figcaption></figcaption></figure>

* Insert two JavaScript files before HTML body ended: Click on Code snippets -> Header & Footer.

```
<script src="https://cdn.ethers.io/lib/ethers-5.2.umd.min.js" type="application/javascript"></script>
<script src="https://app.a2n.finance/sdk/bttcsub-sdk.min.js" type="application/javascript"></script>
```

<figure><img src="/files/G98rFILkZ2XDfdnPLjDC" alt=""><figcaption></figcaption></figure>

* Select a subscription product to integrate: go to <https://app.a2n.finance/user/products>, click on the button "settings", read step 2 and copy HTML code.

<figure><img src="/files/4IlY1c7elYVCTF5mzvN8" alt=""><figcaption></figcaption></figure>

* Back to WPAdmin, create a new product, insert copied HTML code to section "Short Description"

<figure><img src="/files/5utHHH03XxI4aVuZYejW" alt=""><figcaption></figcaption></figure>

* Go to the product page and see the result.

<figure><img src="/files/K6uWeXPaPJ8xqLYhGkMv" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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://a2n-finance.gitbook.io/docs/product-guides/how-to-integrate-with-woocommerce.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.
