😉Enable app embed
How does the app work on your storefront.
1. Enable app embed
On the Dashboard app, if not embedded, a warning banner will display. Click "Activate Now" to redirect to theme editor.

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

2. Add code in Collection Page
Go to theme -> "Edit code"

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>

3. Add Block in Checkout Page
Go to theme -> customize -> checkout page

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

Last updated