# How to integrate with Shopify

* Click on Online Store => Themes => Edit Code

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

* Insert two script links into theme.liquid

```
<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/EvskmMXfNMdFrnZQLsH3" alt=""><figcaption></figcaption></figure>

* Go to <https://app.a2n.finance/user/products>. Select a product and click on the button "settings".

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

* Go to Shopify Admin and create a new product. Insert the copied HTML code to the product's description.

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

* Go to the product page and check the result.

<figure><img src="/files/mo7ePgjAmPFLJpQ35GKL" 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-shopify.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.
