FREQUENTLY ASKED QUESTIONS

We’re Here to Help

HOW DOES LENSADVIZOR WORK?

In a nutshell, LensAdvizor is a Shopify app that helps online eyewear stores sell prescription lenses and other custom lens options. LensAdvizor "lives" on your product page and when triggered, presents your customers with a list of lenses they can add to your product.

HOW DO I INSTALL THE APP?

You can visit our page on the Shopify app store and click Add App.

WHAT HAPPENS DURING INSTALLATION?

During installation, LensAdvizor will perform three key steps automatically:

  1. Request a set of permissions needed to integrate with your products and orders.

  2. Install two files: lensadvizor.css and lensadvizor.liquid

  3. Pastes the snippet with {% insert 'lensadvizor' %} at the bottom of your theme.liquid file.

HOW DO I USE LENSADVIZOR?

LensAdvizor works similar to how you would add products to a collection in Shopify. The only difference with LensAdvizor is that you'll be creating a Lens Collection to which you'll add both lenses and products.

  1. Decide what lenses you want to offer with your products.

  2. Create a Lens Collection.

  3. Add your lenses.

  4. Assign products.

  5. Boom. 

The products assigned in Step 4 will feature an add-to-cart process that features the lenses added in Step 3 as add-on options.

WHAT LENSES CAN I ADD?

Right now, LensAdvizor allows you to add unlimited lenses from five categories:

  1. Clear

  2. Blue-Light-Blocking

  3. Photochromic (light-sensitive)

  4. Non-Polarised Sunglasses

  5. Polarised Sunglasses

WHAT PRESCRIPTION TYPES CAN WE ADD?

During the lens selection process, customers can choose five prescription options:

  1. Single Vision

  2. Progressive

  3. Reading

  4. Non-Prescription

  5. Frame Only

We realise "Frame Only" isn't a prescription type, some of your customers may want to order only your frames.​

CAN I DECIDE WHAT LENSES AND PRESCRIPTIONS TO OFFER ON MY WEBSITE?

Yes, you have full control over what lenses options your customers see.

HOW MUCH DOES LENSADVIZOR COST?

You can try LensAdvizor for free! With our free plan, you can assign up to 3 products to Lens Collections.

To learn more about our paid plans, please click here.

HOW DO I HIDE THE LENS PRODUCTS FROM THE CART?

Option 1 - Hide the lens from the cart
1. Ensure that the following is at the bottom of the cart.liquid file
{% include 'lensadvizor-cart' %}

2. Add the following to your cart.liquid, just below the {% for item in cart.items %} row of code:

{% assign line_item_id = '' %}
{% assign line_item_price = '' %}
{% assign line_item_total = '' %}

<!--   LensAdvizor classes for hiding cart lens products in cart  -->
{% for p in item.properties %}
    {% if p.first == '_unique_identifier'%}
        {% capture line_item_id %}
            lensadvizor-line-item-id-{{item.id}}{{p.last | replace : ':','-' | replace: '.','-' }}
        {% endcapture %}
        {% capture line_item_price %}
            lensadvizor-line-item-price-{{item.id}}{{p.last | replace : ':','-' | replace: '.','-' }}
        {% endcapture %}
        {% capture line_item_total %}
            lensadvizor-price-id-{{item.id}}{{p.last | replace : ':','-' | replace: '.','-' }}
        {% endcapture %}
    {% endif %}
{% endfor %}
<!--  End LensAdvizor classes for hiding lens products in cart   -->


3. Add the following code as a new CSS class for the specified container

  • for line item parent container
    {{ line_item_id }}

    -- example --

    <tr class="cart__row responsive-table__row {{ line_item_id }}">


  • for line item price container (Some themes do not have item price)
    {{ line_item_price }}

    -- example --
    <td class="cart__table-cell--price medium-up--text-right {{ line_item_price }}">

  • for total line item price container (Some themes do not have total price)
    {{ line_item_total }}

    -- example --
    <td data-label="{{ 'cart.label.total' | t }}" class="text-right cart__table-cell--line-price {{ line_item_total }}">

Option 2 - Disable remove of lens from the cart
Wrap the "Remove" button and "Quantity" field in the following
{% unless item.vendor == "LensAdvizor" %}
{% endunless %}

Note: If you want to still show the quantity field, you can add the following as an attribut on the input element:
{% if item.vendor == "LensAdvizor" %}disabled=true{% endif %}

HOW CAN I HIDE INTERNAL PROPERTIES ON THE CART PAGE?

In your cart.liquid template, you find the code that loops over and displays cart item properties. Just inside this loop, update the code that checks for the first character to the following:

{% assign first_character_in_key = p.first | truncate: 1, '' %}
{% unless p.last == blank or first_character_in_key == '_' %}