> For the complete documentation index, see [llms.txt](https://docs.paretodeals.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.paretodeals.com/pareto-limit-purchases/enable-app-embed.md).

# 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/cb4JeLgZwNdd9bUn3D5Q" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/1PVqDmC5vJRWi1meqj7Z" alt=""><figcaption></figcaption></figure>

### 2. Add code in Collection Page

* Go to theme -> "Edit code"

<figure><img src="/files/TMdhK8FuM0u6N5mVGStH" 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/2xffQH4JeYhPkShJ5PrO" alt=""><figcaption></figcaption></figure>

### 3. Add Block in Checkout Page

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

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

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

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