Skip to main content
Version: 1.3.0

Lens Selector

With eyeglasses, the customers can also select lenses and purchase both glasses and lenses together. For this feature, our theme has integrated the app LooL: Prescription Lens.

Integrate the App

  1. Go to https://apps.shopify.com/lool and install the app. Lool App
  2. You will be redirected to your active store for the installation. Make sure you are in the store where you want to add the lens app. Click on the 'Install' button and the app is installed in your store. Lool Install

Create Lens Collection

Once you have installed the app, you need to create a collection of lens products.

Prescriptions

  1. In the admin panel of your store, under Lool, click on ‘Lens collections’. Lens Collections
  2. In the new page, click on the ‘Create new collection’ button. Lens Add Collection
  3. Untitled collection gets created. To start customizing, click on the ‘Edit’ button. Lens Untitled Collection
  4. This is what’s shown on the screen once the ‘Edit’ button is clicked. ‘Prescriptions’, ‘Lenses’ and ‘Publish’ tabs are what’s needed to make the lens selector. The rest of the tabs are optional and should be used depending on your needs. Lens Collection Settings
  5. Click on the ‘Add prescription type’ button to add & specify prescription types your store provides. Lens Add Prescription
  6. The app has 6 prescription types. You can use all 6 or only ones that’s necessary. Click on the ‘Type’ dropdown and choose the type. Lens Prescription Types
  7. After selecting the type, give title and description. Image is optional. Lens Title Description
  8. Then, repeat Step 6 & 7 for other prescription types.

Lenses

  1. Click on the ‘Lenses’ tab. This is where you select which lens products to show when the customers click the ‘Select Lens’ button in the product page. Lens Lenses Tab
  2. Click on the ‘connect’ button and this opens up the ‘Add product’ modal. Lens Connect Product Btn
  3. On the modal, type the name of the lens product you want to add, click on the checkbox and then hit the ‘Add’ button. Lens Add Product
  4. Then, repeat Step 2 & 3 for other products you want to add.

Publish

  1. Click on the ‘Publish’ tab and then hit the ‘Publish’ button. Lens Publish Tab
  2. Once the ‘Publish’ button is clicked, the theme selector dropdown is visible. Choose the live theme of your store. Lens Select Theme
  3. Once you have chosen the theme, you will see the collection key, which you have to copy, and the steps that are needed to add the app block and use the key. Our theme already comes with the Lool app block integrated. So you just have to go to the product page and paste the key in the existing ‘Select Lenses’ block. Lens Embed Popup Steps
  4. Before you open up the theme editor in your admin, make sure you hit the ‘Save’ button. Otherwise all the changes you made will be gone.

Lens Selector for Eyeglasses Only

The above steps will show the lens selector button and popup in all the products of your store. But, if you want to show them only on eyeglasses, the way to do it is via metafields.

  1. In the admin panel of your store, you will see ‘Settings’ on the left bottom. Click on ‘Settings’.

    Metalens Admin Settings

  2. Go to the ‘Custom data’ section of the settings and click on ‘Products’. Metalens Products

  3. Click on the ‘Add definition’ button. Metalens Add Definition

  4. Give a suitable name, and choose ‘Single line text’. Then, hit the ‘Save’ button. Metalens Definition Fields

  5. Then, go to any eyeglasses product in the admin panel and scroll down to the metafields area. In the empty field next to the metafield you just created, paste the collection key. Then, hit the ‘Save’ button. Metalens Product Metafield

  6. Now, go to the product page in your theme editor. You will see the ‘Select Lenses’ block. Click on it and specify the metafield you just created as the dynamic source for the collection key. Metalens Metafield Source

  7. Then, hit the ‘Save’ button. Now only those products where you have added the key via the metafield will show the lens selector button and popup.