# How to automatically hide the Select Lenses button when I select a specific variant

## 1. Create 2 product's metafields

<figure><img src="https://726787322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJfHIPqiZSixmeDOB7MdE%2Fuploads%2Fg3tj14G3Dtkzwvvs8VeQ%2Fimage.png?alt=media&#x26;token=03166733-6996-4153-9074-ec8438e2bf17" alt=""><figcaption></figcaption></figure>

### 1.1 Auto Trigger LOOL Collection Key

Namespace and key -> lool.autoTriggerCollectionKey

Type -> Single line text

Storefronts access -> Read

<figure><img src="https://726787322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJfHIPqiZSixmeDOB7MdE%2Fuploads%2F057VF1V0ikDxirV4Xuzd%2Fimage.png?alt=media&#x26;token=75da7382-71eb-4386-9952-186ae34df31e" alt=""><figcaption></figcaption></figure>

### 1.2 Auto Hide LOOL Variants

Namespace and key -> lool.autoHideVariantIds

Type -> Single line text

Storefronts access -> Read

<figure><img src="https://726787322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJfHIPqiZSixmeDOB7MdE%2Fuploads%2FndM2rvLUvWBIg7OLSAVO%2Fimage.png?alt=media&#x26;token=cb178516-7d53-441c-aaef-5c3eec36242e" alt=""><figcaption></figcaption></figure>

## 2. Goto the product page and finish the configure

<figure><img src="https://726787322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJfHIPqiZSixmeDOB7MdE%2Fuploads%2F1RyazWYh39gN5xX7mUxM%2Fimage.png?alt=media&#x26;token=bfb42c97-281c-4b19-92b6-b1075e42ff5f" alt=""><figcaption></figcaption></figure>

The Medium's variant id is 41743364587697, so the select lenses button will be hidden when you select the Medium variant on product page, If you want to configure multiple variants, just separate the variant IDs with commas

<figure><img src="https://726787322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJfHIPqiZSixmeDOB7MdE%2Fuploads%2FLIjtvkL9pT3PsWivD1Iv%2Fimage.png?alt=media&#x26;token=5a9f6814-dcd3-4296-a5ba-c74bf12e2940" alt=""><figcaption></figcaption></figure>
