# Enable app embed

### 1. Enable app embed

1. On the Dashboard app, if not embedded, a warning banner will display. Click "Activate Now" to redirect to theme editor.

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

2. Turn on "**Pareto Limit Purchase**" app and don't forget save your change.

<figure><img src="/files/7X6ASt9X19zJWucruGni" alt=""><figcaption></figcaption></figure>

### 2. Add code in Collection Page

* Go to theme -> "Edit code"

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

* Add code the collection.liquid or card-product.liquid, at position you want.

```
{% assign result_collection = "" %}
{% for collection in card_product.collections %}
{% if forloop.first == false %}
    {% assign result_collection = result_collection | append: "," %}
{% endif %}
{% assign result_collection = result_collection | append: collection.id %}
{% endfor %}
<div class="omgLimit-collection" 
  data-variant-id="{{ card_product.variants[0].id }}"
  data-variant-price="{{ card_product.selected_or_first_available_variant.price }}"
  data-variant-weight="{{ card_product.selected_or_first_available_variant.weight }}"
  data-variant-quantity="{{ cart | item_count_for_variant: variant.id }}"
  data-product-id="{{ card_product.id }}" 
  data-colections="{{ result_collection }}">
</div>
```

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

### 3. Add Block in Checkout Page

* Go to theme -> customize -> checkout page&#x20;

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

* Add the "**Pareto - Payment Limit**" block to the position you want

<figure><img src="/files/Nohh52EVWc80QgkBxaXI" 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://pareto-1.gitbook.io/pareto-docs/enable-app-embed.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.
