Online Store 2.0 (recommended)
Add the LensAdvisor Select Lenses app block to your product template via the Shopify theme editor. Save. That is the whole install. Repeat on the cart template so bundled line items stay in sync.
For a Quick Buy button anywhere else (home, collections, custom sections), turn on the LensAdvisor Quick Buy app embed and drop the web component into your theme code.
<lensadvizor-quick-buy
class="la-select-lenses-btn"
data-la-quick-buy
data-la-product-id="{{ product.id }}"
data-la-variant-id="{{ product.selected_or_first_available_variant.id }}"
data-la-product-json="{{ product | json | escape }}"
data-la-flow-id=""
>
</lensadvizor-quick-buy>
Online Store 1.0 (manual install)
Download lensadvizor.liquid, drop it into snippets/, then render it from theme.liquid on the product and cart page types.
<!-- LensAdvizor snippet starts -->
{% if request.page_type == 'product' or request.page_type == 'cart' %}
{% render 'lensadvizor' %}
{% endif %}
<!-- LensAdvizor snippet ends -->
Excluding products
Add the tag remove-rx to any frame product to suppress the Select Lenses button on that product, even if it matches a Lens Flow by collection.
When the Quick Buy component is rendered dynamically (section rendering, AJAX-loaded product cards), add data-la-quick-view="1" or call LensAdvizor.init() after insert.
