How to Order Glasses Online from Eyemart Express (2024)

Shop online and Save 30% + Free Shipping *Some Exclusions Apply

EN | ES

Your Store & Eye Doctor

Tucson, AZ

Change Location

Tucson, AZ

Open at 9am MST

4144 N Oracle Rd Ste 180 Tucson, AZ 85705 (520) 467-4453

Store details, offers and insurance plans

Rx Bring in your prescription

FIND ANOTHER STORE

  • GET GLASSES TODAY

    • SHOP GLASSES
      • Women
      • Men
      • Youth
      • All Frames
    • BROWSE BY STYLE
      • Classic
      • Square
      • Round
      • Cat-Eye
      • Aviator
      • Rectangle
      • Oval
      • Octagon
    • CUSTOM SUNGLASSES
      • Polarized Gray
      • Polarized Brown
      • G15 Green
    • BROWSE FASHION TINTS
      • Gray Tint
      • Brown Tint
      • Green tint
      • Blue Tint
      • Yellow Tint
      • Lavender Tint
      • Rose Tint
    • SPECIALTY GLASSES
      • Safety Glasses
      • Sunglasses
    • BROWSE BY COLOR
      • Black
      • Tortoise
      • Red
      • White
      • Blue
      • Green
      • Purple
      • Clear
      • Grey
      • Yellow
      • Silver
      • Gold
      • Gunmetal

      " " How to Order Glasses Online from Eyemart Express (1)

  • BRANDS

    • DESIGNER
      • Burberry
      • Calvin Klein
      • Coach
      • Longchamp
      • Michael Kors
      • Oakley
      • Polo
      • Ray Ban
      • Versace
      • See ALL
    • BEST SELLERS
      • Flexon
      • Geek
      • Halston
      • Kay Unger
      • Nike
      • PeaceLove
      • Shaquille O'Neal
      • Stetson
      • Via Spiga
      • Wide Guyz
    • EYEMART EXPRESS EXCLUSIVES
      • Brooklyn
      • High Street
      • Lazzaro
      • Quill
      • Volo
      • See ALL
    • BROWSE VALUE
      • Plastic
      • Metal
      • Show ALL
    • BROWSE SPOTLIGHT BRANDS
    • " " How to Order Glasses Online from Eyemart Express (2)

  • LEARN

    • HOW TO SHOP ONLINE
      • How to Order Glasses
      • How to Read Your Prescription
    • OUR LENSES
      • Lenses and Lens Materials
      • UltraxHD Lenses
      • Blue Light Blocking Lenses
    • AFFINITY PROGRAMS
      • Military Discount
      • School Faculty and Staff
      • First Responders
    • WARRANTY, RETURNS AND EXCHANGES
      • One Year Frame Warranty
      • Platinum Protection
      • Returns and Exchanges
      • Restyle
    • ABOUT US
      • Our Culture
      • Our History
      • Our Leadership
      • All in One Place
      • Careers
      • Todo En Un Lugar

      " " How to Order Glasses Online from Eyemart Express (3)

  • INSURANCE
  • EYE EXAMS
    • Try searching by product brand, model, SKU or color.

      No Results Found.

  • Login

Está a punto de ingresar a una página que solo existe en Inglés. Agradecemos su paciencia mientras mejoramos nuestro sitio. Disculpe las molestia.

  • Search Account

MENU HOME Login Insurance EYE EXAMS

Get Glasses Today Women Men Youth All Frames

Browse By

Specialty Glasses Safety Glasses Sunglasses

STYLE Classic Square Round Cat-Eye Aviator Rectangle Oval Octagon

Material Metal Plastic Titanium

Color Black Tortoise Red White Blue Green Purple Clear Grey Yellow Silver Gold Gunmetal

Sunglasses Ready to Wear

Tints Gray Tint Brown Tint Green tint Blue Tint Yellow Tint Lavender Tint Rose Tint

BRANDS BROWSE SPOTLIGHT BRANDS

Browse By

Designers Burberry Calvin Klein Coach Longchamp Michael Kors Oakley Polo Ray Ban Versace See ALL

Sellers Flexon Geek Halston Kay Unger Nike PeaceLove Shaquille O'Neal Stetson Via Spiga Wide Guyz

Exclusive Brooklyn High Street Lazzaro Quill Volo See ALL

Value Plastic Metal Show ALL

LEARN

Shop How to Order Glasses How to Read Your Prescription

Lenses Lenses and Lens Materials UltraxHD Lenses Blue Light Blocking Lenses

Affinity Military Discount School Faculty and Staff First Responders

Warranty One Year Frame Warranty Platinum Protection Returns and Exchanges Restyle

About Our Culture Our History Our Leadership All in One Place Careers Todo En Un Lugar

Our online store was built exclusively for Eyemart Express customers. We want to be able to serve you great quality eyewear 24/7, and this is how we’re going to do it! Below, we’ll take you step by step through the processes of using the online store to its full potential and updating your prescription, allowing you to buy glasses from the comfort of your home.

How to Set Up Your Online Account

When you purchased your glasses in-store, we asked you for an email address. This is where that comes in handy! You’ll register to use our online store with the same email you provided us. The system will automatically populate your prescription information, and you’ll be good to go. The store will serve you with a selection of glasses that match your prescription and fit your style.

1. Create an Account

At the top right of our website, select “Login.” Doing so will will take you to a new page and here you will want to select the black rectangle that says “Create an Account” at the bottom.

From here, you'll need to fill in the information on the form, including the email you gave us if you shopped in-store first and a password. Once your password boxes match, you can click “Create My Account.” You will then be asked to verify your identity through an email.

2. Link Your In-Store Purchase

If you are new to Eyemart Express, hit “New Customers.” If you have previously shopped with us, click “Existing Customers” on your account's dashboard.

As an existing customer, you have an opportunity to link your prescription from our store so you can effortlessly shop online. Just enter your phone number and zip code, and our automated system will text you a six-digit one-time code to confirm your account. After submitting your code, your prescription should be linked.

3. Shop

Return to your account dashboard and select “Start Shopping” to see our large selection of frames. You can narrow the search of over 2,000 options into:

  • Materials: Eyemart Express carries several frame materials, including metal, plastic, stainless steel, and titanium.
  • Shape: Whatever your preferred frame shape, we have it all — aviator, cat-eye, oval, rectangle, square, octagon, pillow, and round.
  • Style: You can also select your preferred style, depending on your needs and preferences, with options including business, designer, classic, and trendy.
  • Color: If you have a specific color in mind, you can make your search easier by selecting from traditional colors like black, brown, or gray or switch it up with a tortoise pattern or orange frames.
  • Gender: We have a large selection of styles for everyone, ensuring you can find the ideal frames to fit your face shape.
  • Availability: The availability tab can narrow down what we have in stock in your selected store if you want to come try them on.

How to Update Your Prescription

Updating your prescription online is easy! Whether you submit your update via phone or computer, your information is immediately encrypted and safely sent to us. Upon submission, you will receive a notification from us letting you know when your request is completed.

Read through this short guide or watch the video for step-by-step instructions.

1. Request a Prescription Update

After logging in, hover your mouse over your name in the top right corner of the screen. A drop-down menu will appear, and you can choose “Account Management.” Here, there should be an option that says “Manage Prescriptions.” Click this box, and you will see the prescription management page.

Click “Add a Prescription,” which will take you to our prescription request form. Fill in your name and prescription information, and be sure to upload a scanned image of your signed prescription form.

Once you submit, you should see your prescription pending on the management page.

2. We Are Validating Your Prescription

Now, confirming your new prescription is our team's responsibility. You will receive an initial confirmation email that we have received your submission for review.

Our business hours are 8:00 a.m. to 5:00 p.m. CST. If you have submitted a request outside of these hours, we will make sure to confirm your prescription the following business day.

3. Check for a Confirmation Email

Once our experts have validated your new prescription, you will receive a follow-up email in your inbox. This message will let you know that your prescription is available to use in our online store.

4. Shop Using Your New Prescription

You can now shop online with ease! After logging into your account, choose the pair of frames you want. Once you've added them to your cart, select your new prescription at checkout. Otherwise, your frames may be made using a previous prescription.

Order Online Today

At Eyemart Express, we are here to serve our customers. Our online site is easy to use and offers several benefits, including shopping from home! Once you've ordered your new glasses from your selected store, our techs will get to work, often getting your frames out that same day.

We have some delivery options, or they can be made available for pickup. If you decide to pick them up, we will email, text, or call you whenever they are ready!

Are you ready to build the frames of your dreams? Make a free account and order online today!

\n \n \n

';n.forEach((function(e){var t=e.closest("[cartline-id]"),n=t.querySelector("img"),s=t.querySelector(".brand").innerText,a=t.querySelector(".item_name").innerText,c='\n

\n How to Order Glasses Online from Eyemart Express (4)\n

\n

'+s+'

\n

'+a+"

\n

\n

\n ";o+=c})),o+="

\n

\n

The following items are not in stock at '+document.querySelector(".pick-up-at").innerText+"

\n "+o+'\n

\n

=0)return components.search.tags_found.id.push(o.id),components.search.tags_found.name.push(o.name),"tag"}return components.search.tags_found.id.length>0?"tag-intersect":(components.search.colorOrdering=!1,"name")})),page("browse.details.components.GTM",(function(e,t){t=t||components.cache.session.browse[e];var n={ecommerce:{impressions:[],detail:{products:[]}}},o={category:(t.gender+"/"+(Parameter.get("tint")||page.browse.details.components.color||"clear")).toLowerCase(),id:t.sku,name:t.name,brand:t.brand};components.database.isSkuRecommended(t.sku)&&(o.price=parseFloat(t.price)),n.ecommerce.detail.products.push(o),components.tracking.listrak((function(){_ltk.Activity.AddProductBrowse(t.sku)})),t.additional.length>0?components.cacheSKUs(t.additional,(function(){t.additional.forEach((function(e){var t=components.cache.session.browse[e],o={category:(t.gender+"/"+(Parameter.get("tint")||page.browse.details.components.color||"clear")).toLowerCase(),id:t.sku,name:t.name,brand:t.brand};components.database.isSkuRecommended(t.sku)&&(o.price=parseFloat(t.price)),n.ecommerce.impressions.push(o)})),dataLayer.push(n),log(n)})):(dataLayer.push(n),log(n))})),page("browse.details.init",(function(e){if(console.log("details init"),window.SKU=e||location.pathname.split("/").pop(),$this=page.browse.details.components,$this.images.init(SKU),$this.api(SKU,(function(t){"object"!==(void 0===t?"undefined":_typeof(t))&&(t=JSON.parse(t)),window.data=t,$this.data.init(t),$this.GTM(e,t)})),!components.auth.check())return document.querySelector("#additional").className="",document.querySelector("#configure-glasses-container").classList.add("hidden"),n();var t={tint:Parameter.get("tint")};function n(){document.querySelector("#configure-glasses-container").className=""}httpRequest.post("/browse/details/"+SKU+"/checkout",t,(function(e){if(n(),200===e.status){if(!e.prescriptionType||Parameter.check("change_prescription","true"))return $this.showPrescriptionSelect();var t=document.querySelector("#configure-glasses-container");t.className="",t.innerHTML=e.html,$this.checkout.init(e),document.querySelector("#additional").className="hidden"}else if("expired-upload"===e.status){var o=document.querySelector("#add-to-cart-btn");o.innerText="Upload Prescription",o.onclick=function(){return location.pathname="/account/prescriptions"}}else if("expired"===e.status)return $this.showPrescriptionSelect()}),(function(e){n(),console.error(e),document.querySelector("#additional").className=""}))})),page("browse.details.components.addThisVersionToCart",(function(){components.scrollTo("#configure-glasses-container");var e=Parameter.get("tint")||"clear",t="brown"===e||"gray"===e?"polarized":"tint";"clear"===e&&(t="clear"),$this.cache[1].selected=SKU,$this.cache[2].style=t,$this.cache[2].tint=e,components.cache.save(),$this.checkout.steps[1].init(),$this.checkout.steps.show(1)})),page("browse.details.components.ajaxLoad",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"clear",n=arguments[2];if(window.api=null,!n.target.classList.contains("color-box")&&!n.target.closest(".color-boxes")){try{var o=e.closest(".frame"),s=document.getElementById("last-selected");s&&(s.removeAttribute("id"),s.querySelector(".btn").innerText="View Details"),o.id="last-selected",o.querySelector(".btn").innerText="Last Viewed!",e=e.getAttribute("sku")}catch(e){}n&&(n=n||window.event);var a=location.origin+"/browse/details/"+e;a=Parameter.set("tint",t,a),Parameter.check("opus")&&(a=Parameter.set("opus",!0,a)),n?(components.page.show("browse-details",{selector:".browse-page-content",skipAnimation:!0,skipHeightAnimation:!0}),history.pushState({},null,a),window.onpopstate=function(e){e=e||window.event,components.page.show("browse",{selector:".browse-page-content",skipAnimation:!0,skipHeightAnimation:!0}),document.querySelector(".browse-details").innerHTML=page.browse.details.components.cachePage,components.scrollTo(document.getElementById("last-selected")),e.preventDefault()},n.preventDefault()):history.replaceState({},null,a),page.browse.details.init(e),components.scrollTo()}})),page("browse.details.components.api",(function(e,t){if(components.cache.session.browse=components.cache.session.browse||{},e||(e=location.pathname.split("/").pop()),page.browse.details.components.sku=e,components.cache.session.browse[e])return t(components.cache.session.browse[e]);httpRequest.get("/browse/details/"+e+"?api",(function(n){components.cache.session.browse[e]=n,components.cache.save(),t&&t(n)}))})),page("browse.details.components.cacheDetailsPage",(function(){var e=document.querySelector(".browse-details-template").innerHTML;page.browse.details.components.cachePage=e})),page("browse.details.components.changePrescription",(function(){Parameter.set("change_prescription","true"),document.querySelector("#configure-glasses-container").innerHTML="",page.browse.details.init(),setTimeout((function(){components.scrollTo("#configure-glasses-container")}),500)})),page("browse.details.components.showPrescriptionSelect",(function(){document.querySelector("#configure-prescription-container").classList.remove("hidden");var e=document.querySelector("#add-to-cart-btn"),t=e.innerText;e.innerText="Select Prescription",components.laravel.view("page.browse.details._select-prescription","#configure-prescription-container",(function(){Parameter.remove("change_prescription"),page.account.prescriptions.components.selectPrescriptionListener((function(){page.browse.details.init(),document.querySelector("#configure-prescription-container").classList.add("hidden"),e.innerText=t}))}))})),page("checkout.success.init",(function(){thisPageOnly("/checkout/success",(function(){components.opusTrackerChecker()}))})),page("locations.details.init",(function(){thisPageOnly("/locations/details",(function(){}))})),page("locations.details.components.changeLocation",(function(e){e=e||window.event,document.getElementById("location-page")&&!Parameter.check("homestore","true")&&(history.back(),e.preventDefault())})),page("locations.details.components.openSunbitModal",(function(){components.modal.laravel("page.locations.details.modal.sunbit",{size:"xs",className:"animation slideUp"},(function(){window.modal.style.border="3px solid #002169",window.modal.style.borderRadius="15px",window.modal.querySelector(".closeBtn").style.color="#002169"}))})),page("locations.details.components.setHomeStore",(function(e,t){var n=t.closest(".home-store-container");components.setHomeStore(e,(function(){Parameter.check("opus")&&page.locations.components.opus.init(),n.querySelector(".set-store-btn").classList.add("hidden"),n.querySelector(".home-store").show()}))})),page("locations.components.modal.setHomeStore",(function(e){var t=e.closest("[data-store-number]"),n=t.getAttribute("data-store-number"),o=t.querySelector(".loading"),s=t.querySelector(".selected");e.classList.add("hidden"),o.classList.remove("hidden"),components.setHomeStore(n,(function(){try{var e=document.querySelector(".modal-content .selected:not(.hidden)");e.classList.add("hidden"),e.parentElement.querySelector(".not-selected").classList.remove("hidden"),o.classList.add("hidden"),s.classList.remove("hidden")}catch(e){}httpRequest.get.html(Parameter.set("ajax","1",location.href),(function(e){document.querySelector("#details-page")&&location.pathname.indexOf("/browse/details")>=0?(document.querySelector("#details-page").innerHTML=e,initPage("/browse/details")):(document.querySelector("#app").innerHTML=e,initPage()),ready(),components.modal.close("down")}))}))})),page("locations.components.modal.useYourLocation",(function(e){components.determineLocation((function(e,t){var n={lat:e,lng:t,geo:!0};components.laravel.view("page.locations.modal._results?opus=true",n,".modal-background .modal-content .stores")}))})),page("promo.lander.init",(function(){setTimeout((function(){components.toast.userLocation.init((function(){location.reload()}))}),2500)})),page("promo.lander.components.submitEmail",(function(){var e=document.querySelector('.email input[name="email"]');document.querySelector('.email input[type="submit"]').classList.contains("disabled")||e.checkValidity()&&(document.querySelector(".email").fadeOut((function(){return document.querySelector(".success-email").fadeIn()})),httpRequest.post(location.pathname,{email:e.value},(function(e){console.log(e)})))})),page("promo.lander.components.validateEmail",(function(e){var t=document.querySelector('.email input[type="submit"]');e.checkValidity()?t.classList.remove("disabled"):t.classList.add("disabled")})),page("support.contact.init",(function(){thisPageOnly("/support/contact",(function(){Defer.js("https://www.google.com/recaptcha/api.js")}))})),components("database.queries.getAll",(function(e){var t=Object.keys(components.database.db.product_tag_ProductId).map(Number),n=components.database.queries.getRecommendations(t);components.database.queries.getProductsFromProductIds(n,(function(t){0===components.database.db.foundRecommendations.length&&(t=collect(t).reverse().all()),components.search.update(collect(t).forPage(e||1,components.search.productsPerPage).all())}))})),components("database.queries.getProductsFromProductIds",(function(e,t,n){var o=[];if(e.forEach((function(e){if(!components.database.db.itemsHidden[e]||components.database.db.foundRecommendations.includes(e))components.database.db.items[e]&&o.push(components.database.db.items[e]);else{var t=[];components.database.db.itemsHidden[e].forEach((function(e){1===e.display_show&&t.push(e)})),t.length>0&&(components.database.db.items[e]=t,o.push(components.database.db.items[e]))}})),components.database.db.results=o,components.database.db.totalResults=collect(components.database.db.results).count(),components.database.db.totalPages=parseInt(components.database.db.totalResults/components.search.productsPerPage),components.database.db.totalResults%components.search.productsPerPage!=0&&(components.database.db.totalPages=components.database.db.totalPages+1),0===components.database.db.totalResults)return components.search.notFound();t&&t(o)})),components("database.queries.getRecommendations",(function(e){if(!window.user_id)return components.database.db.foundRecommendations=[],e;var t=void 0,n=void 0,o=void 0,s=[];return components.database.connect((function(a){t=collect(a.recommendations).intersect(e).all(),Parameter.check("opus","true")&&a.recommendations_OPUS&&(s=collect(a.recommendations_OPUS).intersect(e).all()),n=collect(e).diff(t).all(),o=collect(t).merge(n).all(),a.foundRecommendations=t,Parameter.check("recommendation","true")?a.totalResults=collect(t).count():a.totalResults=collect(o).count()})),Parameter.check("recommendation","true")?t:Parameter.check("opus","true")?s:o})),components("database.queries.getTagIdsFromProductIds",(function(e,t){window.result=[],components.database.connect((function(t){var n=t.product_tag_ProductId;e.forEach((function(e){var t=collect(n[e].items).pluck("tag_id").all();result.push(t)}))})),t&&t(collect(result).flatten().unique().all())})),components("nav.mobile.search.open",(function(){var e=components.modal.html(".mobile-search-html",{className:"fullscreen animation slideLeft"});document.querySelector(".closeBtn").onclick=function(){components.modal.close("left")};var t=e.querySelector("input"),n=e.querySelector(".results");components.database.connect((function(e){components.fuse.init(collect(e.items).flatten(1).all(),{keys:["sku","name","brand","color1","color2","retail_price"]},(function(e){t.onkeyup=function(o){if(0===t.value.trim().length)return components.page.show("init",{selector:".modal-content .content .content"});components.nav.mobile.fuse=e;var s=e.search(t.value.trim()).slice(0,6);if(0===s.length)return components.page.show("empty",{selector:".modal-content .content .content"});var a=s.map((function(e){return components.nav.mobile.item_html(e)})).join("");a='

\n

'+a+'

\n View All\n

',n.innerHTML=a,components.page.show("results",{selector:".modal-content .content .content"})}}))}))})),components("database.queries.getProductIdsProductName",(function(e,t){var n=[];components.database.db.sku_name_id.forEach((function(t){t.name=t.name.toLowerCase().replace(/\s/g,""),t.name.indexOf(e.toLowerCase().replace(/\s/g,""))>=0&&n.push(t.product_id)})),n=components.database.queries.getRecommendations(n),t&&t(collect(n).unique().all())})),components("database.queries.getProductIdsFromSKU",(function(e,t){var n=[];components.database.db.sku_name_id.forEach((function(t){t.sku.indexOf(e)>=0&&n.push(t.product_id)})),n=components.database.queries.getRecommendations(n),t&&t(n)})),components("database.queries.getProductIdsFromTagId",(function(e){var t=components.database.db.product_tag_tagId[e];try{t=collect(t.items).pluck("product_id").all()}catch(e){return[]}return t})),components("database.queries.getProductIdsFromTagIds_intersect",(function(e,t){var n=[],o=[],s=collect(components.database.db.tags).whereIn("id",e);(s=s.groupBy("type")).toArray().forEach((function(e){var t=collect(e.items).groupBy("id").keys().all();n.push(collect(components.database.queries.getProductIdsFromTagIds_union(t)))})),function(){if(n.length>1)for(o=n[0].intersect(n[1]);n.length>0;)o=o.intersect(n.pop());else o=n[0];try{o=o.all()}catch(e){o=[]}o=components.database.queries.getRecommendations(o),t&&t(o)}()})),components("database.queries.getProductIdsFromTagIds_union",(function(e,t){var n=[];return components.database.connect((function(t){e.forEach((function(e){n.push(components.database.queries.getProductIdsFromTagId(e))}))})),n=collect(n).flatten().unique().all(),n=components.database.queries.getRecommendations(n),t&&t(n),n})),components("toast.userLocation.init",(function(e){var t=!1;function n(e){console.log("query failed: "+e)}["/review"].forEach((function(e){location.href.indexOf(e)>=0&&(t=!0)})),t||components.cache.local.confirmedLocation||components.cache.session.askedUserForLocation||document.querySelector("#toast-component")||(components.toast.userLocation.cb=e,httpRequest.get("https://pro.ip-api.com/json?fields=status,message,region,city,lat,lon&key=4S4h3t7Y3jLQu12",(function(e){if("success"!==e.status)return n(e.message);components.laravel.view("components.toasts.user-location",(function(e){0!==e.trim().length&&components.toast.init({message:e,style:2,position:"top",type:"info",delay:0})}),e)}),n))})),page("account.details.avatars.init",(function(){$this=page.account.details.avatars.components;var e=document.querySelector(".profile-select-avatar img");if(e){var t=e.src,n=document.createElement("a");n.href=t,document.querySelector('[bg-image="'+n.pathname+'"]').classList.add("selected")}tabcontent=document.getElementsByClassName("tabcontent"),document.getElementById("blue").style.display="block"})),page("account.details.avatars.components.select",(function(e){var t=e.getAttribute("bg-image"),n=t.split("/"),o=n.pop(),s=n.pop(),a=s+"/"+o,c=document.querySelector(".avatars button.selected");c&&c.classList.remove("selected"),e.classList.add("selected"),components.user("updateAvatar?avatar="+a);try{document.querySelector(".profile-select-avatar img").src=t,document.querySelector(".profile-select-avatar .fa-star").classList.remove("green","blue","yellow"),document.querySelector(".profile-select-avatar .fa-star").classList.add(s.split("_")[0])}catch(e){httpRequest.get.html(Parameter.set("ajax","1",location.href),(function(e){document.querySelector("#app").innerHTML=e,ready(),initPage()}))}})),page("account.prescriptions.add.init",(function(){components.jquery.inputmask.init((function(){$(".date-mask").inputmask({mask:[{mask:"##/##/####"}],greedy:!1,definition:{"#":{validator:"[0-9]",cardinality:1}}});$(".phone-mask").inputmask({mask:[{mask:"(###) ###-####"}],greedy:!1,definition:{"#":{validator:"[0-9]",cardinality:1}}})})),$this=account.prescriptions.add.components})),page("account.prescriptions.add.components.errorMessage",(function(e){var t=document.querySelector("#error-message");t.innerHTML=e,t.classList.remove("hidden"),components.scrollTo(t)})),page("account.prescriptions.add.components.preview",(function(e){var t='How to Order Glasses Online from Eyemart Express (5)',n=components.modal.html(t),o=n.parentElement;o.classList.add("transparent","text-center"),setTimeout((function(){o.style.width=n.querySelector("img").width+50+"px"}),100)})),page("account.prescriptions.add.components.reupload",(function(e){if(e.classList.contains("uploaded")){var t=e.innerHTML;e.innerHTML="Change Image?",e.onmouseout=function(){e.innerHTML=t}}})),page("browse.components.nav.filters.init",(function(e){var t=document.querySelector(".active-filters.desktop"),n=document.querySelector(".active-filters.mobile"),o=page.browse.components.nav.filters.html(e);t.innerHTML=o,n.innerHTML=o})),page("browse.components.nav.filters.html",(function(e){if(0===e.length)return"";var t='

';return t+=e.map((function(e){return"\n \n "})).join(""),t+='\n


\n \n '})),page("browse.components.nav.filters.mobile",(function(e){var t=document.querySelector(".nav-mobile-container");"close"===e?(t.classList.remove("active"),document.body.style.position="relative",document.body.style.pointerEvents="all",t.style.pointerEvents="all",buffer((function(){t.classList.add("hidden")}),400,"close-mobile-filter")):(components.scrollTo(),t.classList.remove("hidden"),document.body.style.pointerEvents="none",t.style.pointerEvents="all",buffer((function(){t.classList.add("active"),document.body.style.position="fixed"}),250,"open-mobile-filter"))})),page("browse.components.nav.disableAllNavTags",(function(e){try{Object.keys(page.browse.components.nav.navElements).forEach((function(e){var t=page.browse.components.nav.navElements[e].element;t&&"none"===t.parentElement.parentElement.style.display&&t.classList.add("disabled")}))}catch(e){}e&&e()})),page("browse.components.nav.enableNavTags",(function(e){page.browse.components.nav.disableAllNavTags((function(){e.forEach((function(e){try{page.browse.components.nav.navElements[e].element.classList.remove("disabled")}catch(e){}}))}))})),page("browse.components.nav.getSelectedTags",(function(e){var t={id:[],name:[]};return document.querySelectorAll(".multi-nav-link-box.filled").forEach((function(e){var n=e.closest(".multi-nav-link"),o=n.getAttribute("data-tag-name"),s=n.getAttribute("data-tag-id");t.id.push(parseInt(s)),t.name.push(o)})),t})),page("browse.components.nav.removeAll",(function(){var e=page.browse.components.nav.getSelectedTags();page.browse.components.nav.toggleTag(e.name,"off")})),page("browse.components.nav.toggleTag",(function(e,t){if("object"===(void 0===e?"undefined":_typeof(e)))return e.forEach((function(e){return page.browse.components.nav.toggleTag(e.trim(),t)}));if(e.indexOf(",")>0)return e.trim().split(",").forEach((function(e){return page.browse.components.nav.toggleTag(e.trim(),t)}));var n=document.querySelector('[data-tag-name="'+e+'"] .multi-nav-link-box'),o=document.querySelector('.nav-mobile [data-tag-name="'+e+'"]');n&&(n.closest(".multi-nav-link").classList.contains("disabled")||setTimeout((function(){"on"===t?(n.classList.add("filled"),o.classList.add("filled")):"off"===t?(n.classList.remove("filled"),o.classList.remove("filled")):(n.classList.contains("filled")?n.classList.remove("filled"):n.classList.add("filled"),o.classList.contains("filled")?o.classList.remove("filled"):o.classList.add("filled")),buffer((function(){var e=page.browse.components.nav.getSelectedTags(),t=function(){return history.replaceState({},null,location.origin+"/browse/Men"+location.search)},n=function(){return history.replaceState({},null,location.origin+"/browse/Women"+location.search)},o=function(){return history.replaceState({},null,location.origin+"/browse/Youth"+location.search)},s=function(){return history.replaceState({},null,location.origin+"/browse"+location.search)};e.name.includes("Men")?t():e.name.includes("Women")?n():e.name.includes("Youth")?o():s(),components.search.tags_found.id=e.id,components.search.tags_found.name=e.name;var a=e.name.join(",").replace(/Men|Women|Youth/gi,"").split(",").filter(Boolean).join(",");a.length>0?Parameter.set("tags",a):Parameter.check("tags")&&Parameter.remove("tags"),Parameter.set("page",1),page.browse.components.nav.query(),page.browse.components.nav.checkForReset(),page.browse.components.nav.filters.init(e.name.sort()),document.querySelector(".filter-button .count").innerText=e.name.length,!mq("DESKTOP")&&components.database.connect((function(e){var t=e.results.length;document.querySelector(".found-frames").innerHTML=""+t+" Frames",components.checkScrollX(".nav-mobile .filters",50)}))}),20,"toggle tag")}),100))})),components("search.goToPage",(function(e,t){var n=parseInt(Parameter.get("page"))||1,o=components.search.elements.searchElement.value;if("next"===t?n++:n--,t||((n=parseInt(e.value)?parseInt(e.value):1)<1&&(n=1),n>components.database.db.totalPages&&(n=components.database.db.totalPages)),components.scrollTo(".navigation"),Parameter.set("page",n),o.length>0?components.search.query(o,n):page.browse.components.nav.query(n),components.search.default)return components.database.queries.getAll(n)})),components("search.notFound",(function(){components.search.elements.content.innerHTML='

No Results Found!

',document.querySelector(".top-options").classList.add("hidden"),document.querySelector(".pagination").classList.add("hidden")})),components("search.orderColors",(function(e,t){var n=t||components.search.elements.searchElement.value,o=e[0].color1.toLowerCase(),s=e[0].color2.toLowerCase();if(o.indexOf(n)<0&&s.indexOf(n)<0)for(var a=1;a=0||r.indexOf(n)>=0)&&e.move(a,0)}})),components("search.resultsText",(function(){var e=parseInt(Parameter.get("page"))||1,t=components.search.productsPerPage*e,n=document.querySelector(".frame-count"),o=document.querySelector(".frame-total"),s=document.querySelector(".total-pages"),a=document.querySelector(".current-page"),c=document.querySelector(".next-pagination"),r=document.querySelector(".previous-pagination");s.innerText=components.database.db.totalPages,a.value=e,1===e?r.classList.add("disabled"):r.classList.remove("disabled"),e===components.database.db.totalPages?c.classList.add("disabled"):c.classList.remove("disabled"),t<=components.database.db.totalResults?n.innerText=t-components.search.productsPerPage+1+"-"+t:n.innerText=components.database.db.totalResults-components.database.db.totalResults%components.search.productsPerPage+1+"-"+components.database.db.totalResults,o.innerText=components.database.db.totalResults,document.querySelector(".top-options").classList.remove("hidden"),document.querySelector(".pagination").classList.remove("hidden")})),components("search.togglePerPage",(function(e){components.search.productsPerPage=e.value,Parameter.set("PerPage",e.value);var t=components.search.elements.searchElement.value;return page.browse.components.nav.getSelectedTags().name.length>0?page.browse.components.nav.query(1):t.length?components.search.query(t,1):components.search.default?components.database.queries.getAll(1):void 0})),components("search.update",(function(e){var t='

';e.forEach((function(e,n){var o=void 0;components.search.tags_found.name.forEach((function(e){components.search.colors[e.toLowerCase()]&&(o=e.toLowerCase())})),o&&components.search.orderColors(e,o),t+=page.browse.components.frameBox.create(e)})),t+="

",components.search.resultsText(),document.querySelector("#search-content").innerHTML=t,page.browse.components.GTM(),components.onkeypressHandler()})),page("browse.find.designer.init",(function(){})),page("browse.details.components.checkout.init",(function(e){var t=window.SKU;window.api=window.api||e,components.cache.local.checkout=components.cache.local.checkout||{},$this.cache=components.cache.local.checkout,$this.cache[t]=$this.cache[t]||{},$this.cache[t][1]=$this.cache[t][1]||{selected:""},$this.cache[t][2]=$this.cache[t][2]||{selected:""},$this.cache[t][3]=$this.cache[t][3]||{selected:""},$this.cache[t][4]=$this.cache[t][4]||{selected:""},$this.cache=$this.cache[t],components.cache.save(),$this.checkout.shipOrPickupInit(),$this.checkout.observers.init(),$this.checkout.steps[1].init()})),page("browse.details.components.checkout.resetCache",(function(e){$this.cache[1]={selected:""},$this.cache[2]={selected:""},$this.cache[3]={selected:""},$this.cache[4]={selected:""},components.cache.save()})),page("browse.details.components.checkout.shipOrPickupInit",(function(){if(document.querySelector(".ship-or-pickup")){var e=window.SKU;if(document.querySelector(".ship-or-pickup .pickup").classList.remove("disabled"),document.querySelector(".ship-or-pickup .ship").classList.remove("disabled"),document.querySelector(".ship-or-pickup .pickup .error").classList.add("hidden"),Parameter.check("opus")&&$this.checkout.resetCache(),api.skus[e].eligible&&api.cartIsOpus&&document.querySelector(".ship-or-pickup .pickup").click(),!api.skus[e].eligible){var t="Not in Stock";api.skus[e].reasons.eligiblePrescription||(t="Pickup Unavailable"),api.skus[e].reasons.notRimless||(t="Rimless frames are not available for pick up"),document.querySelector(".ship-or-pickup .pickup .error").classList.remove("hidden"),document.querySelector(".ship-or-pickup .pickup .error").innerText=t,document.querySelector(".ship-or-pickup .pickup").classList.add("disabled"),document.querySelector(".ship-or-pickup .ship").click()}Parameter.check("opus")&&document.querySelector(".ship-or-pickup .pickup").click()}})),page("browse.details.components.checkout.shipOrPickupToggle",(function(e){e.classList.contains("active")||e.classList.contains("disabled")||(e.classList.contains("ship")?(document.querySelector(".ship-or-pickup .ship").classList.add("active"),document.querySelector(".ship-or-pickup .pickup").classList.remove("active"),document.querySelector("#configure-glasses").classList.remove("opus"),Parameter.remove("opus"),api.cartIsOpus&&components.modal.laravel("page.browse.details.checkout.modals.cart-is-opus",{size:"sm",prevent:!0})):function(){if(document.querySelector(".ship-or-pickup .pickup").classList.add("active"),document.querySelector(".ship-or-pickup .ship").classList.remove("active"),document.querySelector("#configure-glasses").classList.add("opus"),Parameter.set("opus",!0),$this.checkout.resetCache(),$this.checkout.steps.lock(2),$this.checkout.steps.lock(3),$this.checkout.steps.lock(4),$this.checkout.steps[1].init(),!api.cartIsOpus&&!api.cartIsOpusEligible)return void components.modal.laravel("page.browse.details.checkout.modals.cart-is-online",{size:"sm",prevent:!0});document.querySelector('#step-1 [aria-expanded="true"]')||$this.checkout.steps.show(1)}())})),page("browse.details.components.data.init",(function(e){page.browse.details.components.data.measurements(e.measurements),page.browse.details.components.data.checkHomestoreInventory(),components.database.connect((function(t){page.browse.details.components.data.description(e),page.browse.details.components.data.addToCartButton(e),page.browse.details.components.additional(e,t)}))})),page("browse.details.components.data.addToCartButton",(function(e){document.querySelector("#loading-btn").classList.add("hidden"),components.auth.check()&&components.database.isSkuRecommended(e.sku)?document.querySelector("#add-to-cart-btn").classList.remove("hidden"):document.querySelector("#find-store-btn").classList.remove("hidden")})),page("browse.details.components.additional",(function(e,t){var n=Parameter.get("tint")||"clear";e.additional&&e.additional.length>=1?components.cacheSKUs(e.additional,(function(o){var s='

Additional Colors

',a={};e.additional.forEach((function(e){var n=o[e];if(components.auth.check((function(){t.recommendations.includes(n.product_id)&&(a[e]=!0)})),t.itemsHidden[n.product_id]){var s=collect(t.itemsHidden[n.product_id]).where("sku",e).first();s&&1===s.display_show&&(a[e]=!0)}else a[e]=!0})),s+="\n \n "+(o=Object.keys(a)).map((function(e){return'\n \n \n \n '})).join("")+"\n \n ",s+="

",document.querySelector("#additional").innerHTML=s})):document.querySelector(".pdp hr").classList.add("invisible")})),page("browse.details.components.data.checkHomestoreInventory",(function(){var e=document.querySelector("#availability");function t(t,n){if(n)return e.innerHTML='Not in Stock';e.innerHTML='\n Not in Stock at \n '+t.city+", "+t.state+"\n Change Store\n "}e&&httpRequest.post("/store/has-sku",{sku:SKU,store_number:getCookie("homestore")?getCookie("homestore"):500},(function(n){200===n.status&&n.inStock?function(t){e.innerHTML='\n In Stock at \n '+t.city+", "+t.state+"\n Change Store\n "}(n):t(n)}),(function(e){t(e,"failed")}))})),page("browse.details.components.data.description",(function(e){components.database.db.online_exclusive.includes(e.sku)&&document.querySelector("#online-only").classList.remove("hidden"),document.querySelector("#brand").innerText=e.brand,document.querySelector("#name").innerText=e.name,document.querySelector("#description").innerText=e.description,document.querySelector("#gender").innerText=e.gender,document.querySelector("#material").innerText=e.material,document.querySelector("#color").innerText=e.color1+", "+e.color2,components.auth.check()&&(document.querySelector("#discount_price").innerText="$"+e.price,e.map_policy||(document.querySelector("#discount_percentage").innerText=parseInt(e.discount))),components.auth.check()&&components.database.isSkuRecommended(e.sku)?(document.querySelector("#discount_price").innerText="$"+e.price,document.querySelector("#discount_price").classList.remove("hidden"),e.map_policy||(document.querySelector("#discount_percentage").innerText=parseInt(e.discount),document.querySelector("#save-container").classList.remove("hidden"))):document.querySelector("#discount_price").innerText="",components.auth.check()&&e.map_policy?(document.querySelector(".map-policy-check").classList.remove("hidden"),document.querySelector(".retail_price-container").classList.add("hidden")):document.querySelector("#retail_price").innerText=e.retail_price})),page("browse.details.components.data.measurements",(function(e){document.querySelector("#bridge_width").innerText=e[0]+"mm",document.querySelector("#lens_width").innerText=e[1]+"mm",document.querySelector("#lens_height").innerText=e[2]+"mm",document.querySelector("#temple_length").innerText=e[3]+"mm"})),page("browse.details.components.images.init",(function(e,t){e=e||window.SKU,t=t||Parameter.get("tint")||"clear",document.querySelectorAll(".images .preview").forEach((function(n){var o=n.getAttribute("data-angle"),s=components.image[t](e)[o],a=components.image[t](e,"2x")[o];n.setAttribute("bg-image",s),document.createElement("img").src=a})),Parameter.set("tint",t),page.browse.details.components.tint.init(),page.browse.details.components.images.setLargeImage(),components.backgroundImage()})),page("browse.details.components.images.select",(function(e){if(!e.classList.contains("active")){if(document.querySelector(".images .active").classList.remove("active"),e.classList.add("active"),e.classList.contains("measurement"))return document.querySelector(".large-image [bg-image]").classList.add("hidden"),void(e=document.querySelector(".large-image .measurements")).classList.remove("hidden");var t=e.getAttribute("data-angle"),n=Parameter.get("tint")||"clear",o=window.SKU,s=components.image[n](o,"2x")[t];document.querySelector(".large-image .measurements").classList.add("hidden"),(e=document.querySelector(".large-image [bg-image]")).classList.remove("hidden"),e.style.backgroundImage="url("+s+")"}})),page("browse.details.components.images.setLargeImage",(function(){var e=document.querySelector(".images .preview.active").getAttribute("data-angle"),t=window.SKU,n=Parameter.get("tint"),o=components.image[n](t,"2x")[e];document.querySelector(".large-image [bg-image]").setAttribute("bg-image",o),components.backgroundImage()})),page("browse.details.components.tint.init",(function(){var e=Parameter.get("tint")||"clear";document.querySelector('.tint-selector input[value="'+e+'"]').checked=!0})),page("browse.safety.details.init",(function(){window.SKU=location.pathname.split("/").pop();var e=[data.bridge_width,data.a_measurement,data.b_measurement,data.temple_length];"M"===data.gender&&(data.gender="Men"),"F"===data.gender&&(data.gender="Women"),"C"===data.gender&&(data.gender="Youth"),page.browse.details.components.images.init(SKU),page.browse.details.components.data.description(window.data),page.browse.details.components.data.measurements(e),document.querySelector("#loading-btn").classList.add("hidden"),document.querySelector("#find-store-btn").classList.remove("hidden")})),components("toast.userLocation.detect.no",(function(e){components.cache.session.askedUserForLocation=!0,components.cache.save(),components.toast.hide()})),components("toast.userLocation.detect.yes",(function(e){components.determineLocation((function(e,t){httpRequest.post("/setHomestoreFromLatLon",{lat:e,lon:t},(function(e){200===e.status&&(components.cache.local.confirmedLocation=!0,components.cache.save(),setCookie("homestore",e.store_number,30),setCookie("homestoreset",1,30),components.toast.userLocation.cb&&components.toast.userLocation.cb())})),components.toast.page("thank-you"),setTimeout(components.toast.hide,1500)}))})),components("toast.userLocation.detected.no",(function(e){components.toast.page("ask-for-location")})),components("toast.userLocation.detected.yes",(function(e,t){e.classList.add("disabled"),e.innerHTML='',e.parentElement.lastElementChild.classList.add("disabled"),httpRequest.post("/setHomestoreFromLatLon",t,(function(e){setCookie("homestore",e.store_number,30),setCookie("homestoreset",1,30)})),components.cache.local.confirmedLocation=!0,components.cache.save(),components.toast.page("thank-you"),setTimeout(components.toast.hide,1500),components.toast.userLocation.cb&&components.toast.userLocation.cb()})),page("account.prescriptions.add.components.cropperJS.init",(function(e){var t=document.querySelector("#add-prescription-button");try{window.crp.destroy()}catch(e){}window.cropper_image=e,window.ObjectURL=window.URL.createObjectURL(e.files[0]);var n=document.getElementById("input-image");n.src=window.ObjectURL,Defer.css("https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.6/cropper.min.css",(function(){Defer.js("https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.6/cropper.min.js",(function(){t.innerHTML='Added ',t.classList.add("uploaded"),document.querySelector("#prescription-preview").classList.remove("hidden"),window.crp=new Cropper(n,{viewMode:1,autoCropArea:1})}))}))})),page("account.prescriptions.add.components.cropperJS.save",(function(e){(e=e||window.event).preventDefault();var t=document.querySelector(".prescription_form"),n=t.querySelector('[type="submit"]'),o="";if(!n.classList.contains("disabled")){if(!document.querySelector("#add-prescription-button.uploaded"))return $this.errorMessage("Prescription image is required.");n.classList.add("disabled"),n.value="Please Wait...";try{o=crp.getCroppedCanvas({width:1920,height:1080}).toDataURL("image/jpeg")}catch(e){$this.errorMessage("Incorrect Image Format"),n.classList.remove("disabled"),n.value="Submit"}var s={image:o};httpRequest.post("/account/prescriptions/add?"+serialize(t),s,(function(e){200===e.status&&(window.crp.destroy(),location.href="/account/prescriptions?submit=true",console.log(e))}),(function(e){$this.errorMessage(e.message),n.classList.remove("disabled"),n.value="Submit"}))}})),page("browse.details.components.checkout.observers.init",(function(){$this.checkout.observers.updateTotal()})),page("browse.details.components.checkout.observers.updateTotal",(function(){function e(e){var t=document.querySelector(e),n=t.getAttribute("retail-price")?t.getAttribute("retail-price"):0,o=n-n*parseFloat(api.settings.discount);return{retail:parseFloat(n),discounted:parseFloat(o)}}components.observe.attributes(".step-price",(function(t){var n=e("#step-1 .step-price"),o=e("#step-2 .step-price"),s=e("#step-3 .step-price"),a=e("#step-4 .step-price");components.cacheSKUs(SKU,(function(e){"object"!==_typeof(e[SKU])&&(e[SKU]=JSON.parse(e[SKU]));var t=n.retail+o.retail+s.retail+a.retail+parseFloat(e[SKU].retail_price),c=n.discounted+o.discounted+s.discounted+a.discounted+parseFloat(e[SKU].price);document.querySelectorAll(".total-price").forEach((function(e){return e.innerText="$"+c.format(2)})),document.querySelectorAll(".retail-price").forEach((function(e){return e.innerText="$"+t.format(2)})),document.querySelector("#step-1 .step-price").innerText="+$"+n.discounted.format(2),document.querySelector("#step-2 .step-price").innerText="+$"+o.discounted.format(2),document.querySelector("#step-3 .step-price").innerText="+$"+s.discounted.format(2),document.querySelector("#step-4 .step-price").innerText="+$"+a.discounted.format(2)}))}))})),page("browse.details.components.checkout.steps.addToCart",(function(e){e.classList.add("disabled");var t=$this.checkout.steps.getData(),n=Parameter.set("sku",t[1],"/checkout");Parameter.check("opus")&&(t.opus=!0),httpRequest.post(n,t,(function(t){if(200===t.status){var n=Parameter.set("warranty",t.cart_line_id,location.origin+"/account/cart");n=Parameter.set("from-builder",!0,n),location.href=n}else{var o=dev?t.message:"Invalid Selection",s=t.step||1;$this.checkout.steps.showError(s,o),e.classList.remove("disabled")}}),(function(e){console.log(e)}))})),page("browse.details.components.checkout.steps.clear",(function(e){document.querySelectorAll("#step-"+e+"-content input:checked").forEach((function(e){e.checked=!1})),$this.cache[e]={},components.cache.save()})),page("browse.details.components.checkout.steps.getData",(function(e){var t={2:{}};return t[1]=$this.cache[1].selected||SKU,t[2].style=$this.cache[2].style,t[2].tint=$this.cache[2].tint,t[3]=$this.cache[3].selected.replace("_","-"),t[4]=$this.cache[4].selected.replace("_","-"),t.id=!!Parameter.check("id")&&Parameter.get("id"),t})),page("browse.details.components.checkout.steps.lock",(function(e){if(document.querySelector("#step-"+e).classList.add("disabled"),document.querySelector("#step-"+(e-1)+"-content .navigation").classList.add("disabled"),document.querySelector("#step-"+e+" .step-name .selected").innerText="",document.querySelectorAll("#step-"+e+"-content input:checked").forEach((function(e){e.checked=!1})),1!==e)try{$this.checkout.steps[e].reset()}catch(e){console.error(e)}$this.cache[e-1]={},components.cache.save()})),page("browse.details.components.checkout.steps.show",(function(e){if(1!==e&&!$this.checkout.steps.unlock(e))return!1;var t=document.querySelector('[aria-controls="step-'+e+'-content"]'),n=document.querySelector('[aria-expanded="true"]');t.parentElement.classList.contains("disabled")||(n.setAttribute("aria-expanded","false"),n.nextElementSibling.setAttribute("aria-hidden","true"),t.setAttribute("aria-expanded","true"),t.nextElementSibling.setAttribute("aria-hidden","false"),$this.checkout.steps[e].init(),mq("DESKTOP")&&components.scrollTo("#configure-glasses-container",600),!mq("DESKTOP")&&components.scrollTo("#configure-glasses-container",50,-250),document.querySelector(".total-desktop").style.transform="translateY("+66*(e-1)+"px)")})),page("browse.details.components.checkout.steps.showError",(function(e,t){var n=document.querySelector(".step-"+e+"-error");n.innerText=t,components.scrollTo("#step-"+e),$this.checkout.steps.show(e),n.slideDown()})),page("browse.details.components.checkout.steps.unlock",(function(e){return!(1!==e&&!$this.checkout.steps[e-1].validate())&&(document.querySelector("#step-"+e).classList.remove("disabled"),document.querySelector("#step-"+(e-1)+"-content .navigation").classList.remove("disabled"),document.querySelector(".step-"+(e-1)+"-error")&&document.querySelector(".step-"+(e-1)+"-error").classList.add("hidden"),!0)})),page("browse.details.components.checkout.steps.1.init",(function(){try{document.querySelector('#step-1-content [sku="'+($this.cache[1].selected||SKU)+'"]').checked=!0,$this.cache[1].selected=$this.cache[1].selected||SKU,components.cache.save(),$this.checkout.steps[1].render();try{$this.checkout.steps[4].init(),$this.checkout.steps[3].init(),$this.checkout.steps[2].update()}catch(e){}$this.checkout.steps.unlock(2),$this.checkout.steps.unlock(3),$this.checkout.steps.unlock(4)}catch(e){$this.cache[1].selected="",components.cache.save(),$this.checkout.steps.lock(2),$this.checkout.steps.lock(3),$this.checkout.steps.lock(4)}})),page("browse.details.components.checkout.steps.1.render",(function(){var e=$this.cache[1].selected||SKU;document.querySelectorAll(".frame-preview img").forEach((function(t){t.src=components.image.clear(e).open})),document.querySelector("#step-1 .step-name .selected").innerText=document.querySelector("#step-1-content input:checked").nextElementSibling.innerText})),page("browse.details.components.checkout.steps.1.select",(function(e){var t=e.getAttribute("sku");if(history.replaceState(null,null,location.href.replace(window.SKU,t)),window.SKU=t,$this.cache[1].selected&&$this.cache[1].selected===t)return!1;$this.checkout.steps.lock(2),$this.checkout.steps.lock(3),$this.checkout.steps.lock(4),$this.checkout.shipOrPickupInit(),$this.cache[1].selected=t,components.cache.save(),$this.checkout.steps[1].render(),$this.checkout.steps.unlock(2),page.browse.details.components.images.init(t)})),page("browse.details.components.checkout.steps.1.validate",(function(){return!!$this.cache[1].selected.match(/\d{12}/)})),page("browse.details.components.checkout.steps.2.init",(function(){try{$this.checkout.steps[2].update()}catch(e){$this.checkout.steps.lock(3),$this.checkout.steps.lock(4)}})),page("browse.details.components.checkout.steps.2.changeImage",(function(){var e=$this.cache[1].selected,t=$this.cache[2].style,n=$this.cache[2].tint||"clear";document.querySelectorAll(".frame-preview img:first-child").forEach((function(t){return t.src=components.image[n](e).open})),document.querySelectorAll(".frame-preview img:last-child").forEach((function(t){return t.src=components.image.clear(e).open})),"photochromic"===t?document.querySelectorAll(".frame-preview").forEach((function(e){return e.classList.remove("stop")})):document.querySelectorAll(".frame-preview").forEach((function(e){return e.classList.add("stop")}))})),page("browse.details.components.checkout.steps.2.reset",(function(){document.querySelector(".step-2-content-wrapper[show]").setAttribute("show",""),document.querySelector(".frame-preview").classList.remove("active"),document.querySelector(".frame-preview img:first-child").src=components.image.clear($this.cache[1].selected||SKU).open,document.querySelector(".frame-preview img:last-child").src=components.image.clear($this.cache[1].selected||SKU).open,document.querySelector(".frame-preview").classList.add("stop"),document.querySelector("#step-2 .step-price").setAttribute("retail-price",0)})),page("browse.details.components.checkout.steps.2.selectLensStyle",(function(e){var t=e.getAttribute("data-style");"clear"===t?("clear"===$this.cache[2].style&&"clear"===$this.cache[2].tint||($this.checkout.steps.lock(3),$this.checkout.steps.lock(4)),$this.cache[2].style="clear",$this.cache[2].tint="clear",components.cache.save(),$this.checkout.steps[2].update(),$this.checkout.steps.unlock(3)):($this.checkout.steps.lock(3),$this.checkout.steps.lock(4),$this.cache[2].style=t,$this.cache[2].tint="",components.cache.save(),$this.checkout.steps[2].update())})),page("browse.details.components.checkout.steps.2.setPrice",(function(){var e=document.querySelector("#step-2 .step-price"),t=$this.cache[2].style;if(t){var n=parseFloat(api.prices[t].price);e.setAttribute("retail-price",n)}else e.setAttribute("retail-price",0)})),page("browse.details.components.checkout.steps.2.tintSelector",(function(e){var t=e.value;$this.cache[2].tint=t,components.cache.save(),$this.checkout.steps[2].update(),$this.checkout.steps.clear(3),$this.checkout.steps.clear(4),$this.checkout.steps.unlock(3),$this.checkout.steps.lock(4)})),page("browse.details.components.checkout.steps.2.update",(function(){var e=$this.cache[2].style,t=$this.cache[2].tint;if(e){if(document.querySelector("#step-2 [show]").setAttribute("show",e),document.querySelector('#step-2 input[data-style="'+e+'"]').checked=!0,$this.checkout.steps[2].setPrice(),$this.checkout.steps[2].changeImage(),document.querySelector("#step-2 .step-name .selected").innerText=e.toUpperCase(),t&&"clear"!==t)document.querySelector('#step-2 input[value="'+t+'"]').checked=!0,document.querySelector("#step-2 .step-name .selected").innerText=e.toUpperCase()+" - "+t.toUpperCase(),$this.checkout.steps.unlock(3);else{var n=document.querySelector(".tint-selector input:checked");n&&(n.checked=!1),$this.checkout.steps.unlock(3)}"clear"===t&&($this.checkout.steps.unlock(3),$this.checkout.steps.unlock(4))}})),page("browse.details.components.checkout.steps.2.validate",(function(){var e=$this.cache[2].style,t=$this.cache[2].tint;return!!((e&&e.length)>0&&t&&t.length>0)})),page("browse.details.components.checkout.steps.3.init",(function(){var e=$this.cache[2].style,t=$this.checkout.steps[3].getPrescriptionType(),n=api.prices[e];if($this.checkout.steps[3]["init_"+t](n),document.querySelector(".input.hd").classList.contains("disabled")){var o=document.querySelector(".input.sd input");return o.checked=!0,void $this.checkout.steps[3].select(o)}if("brown"!==$this.cache[2].tint||"photochromic"!==$this.cache[2].style||"progressive"!==t&&"bifocal"!==t?(document.querySelector("[data-type='sd']").disabled=!1,document.querySelector("[data-type='sd'] + label").classList.remove("not-available")):(document.querySelector("[data-type='sd']").disabled=!0,document.querySelector("[data-type='sd']").checked=!1,document.querySelector("[data-type='sd'] + label").classList.add("not-available")),$this.cache[3].selected){var s=document.querySelector('[data-prescription="'+$this.cache[3].selected+'"]');s&&(s.checked=!0,$this.checkout.steps[3].select(s))}})),page("browse.details.components.checkout.steps.3.getPrescriptionType",(function(){var e=api.prescriptionType;return e.indexOf("sv")>=0?"sv":e.indexOf("progressive")>=0?"progressive":e.indexOf("bifocal")>=0?"bifocal":void 0})),page("browse.details.components.checkout.steps.3.getPrice",(function(e){var t={},n=$this.cache[2].style,o=!1;try{o=parseFloat(api.prices[n][e].price)}catch(e){return!1}return t.discounted=parseFloat((o-o*api.settings.discount).toFixed(2)),t.original=o,t})),page("browse.details.components.checkout.steps.3.init_bifocal",(function(e){document.querySelector(".bifocal").classList.remove("hidden");var t=document.querySelector(".input.sd input"),n=document.querySelector(".input.hd input");t.setAttribute("data-prescription","bifocal"),n.setAttribute("data-prescription","bifocal_hd");var o=$this.checkout.steps[3].getPrescriptionType();document.querySelector(".input.hd").classList.add("disabled"),document.querySelector(".input.hd .price-container").innerHTML='Unavailable',document.querySelector("[show]."+o+" .error").classList.remove("hidden");var s=$this.checkout.steps[3].getPrice("bifocal").discounted,a=$this.checkout.steps[3].getPrice("bifocal").original;document.querySelector(".input.sd .price-container").innerHTML='

+$'+s+'

(Retail $'+a+")

"})),page("browse.details.components.checkout.steps.3.init_progressive",(function(e){document.querySelector(".progressive").classList.remove("hidden");var t=document.querySelector(".input.sd input"),n=document.querySelector(".input.hd input");t.setAttribute("data-prescription","progressive"),n.setAttribute("data-prescription","progressive_hd");var o=$this.checkout.steps[3].getPrescriptionType();if(e.hd){var s=$this.checkout.steps[3].getPrice("progressive_hd").discounted,a=$this.checkout.steps[3].getPrice("progressive_hd").original;document.querySelector(".input.hd").classList.remove("disabled"),document.querySelector(".input.hd .price-container").innerHTML='

+$'+s+'

(Retail $'+a+")

",document.querySelector("[show]."+o+" .error").classList.add("hidden")}else document.querySelector(".input.hd").classList.add("disabled"),document.querySelector(".input.hd .price-container").innerHTML='Unavailable',document.querySelector("[show]."+o+" .error").classList.remove("hidden");var c=$this.checkout.steps[3].getPrice("progressive").discounted,r=$this.checkout.steps[3].getPrice("progressive").original;document.querySelector(".input.sd .price-container").innerHTML='

+$'+c+'

(Retail $'+r+")

"})),page("browse.details.components.checkout.steps.3.init_sv",(function(e){document.querySelector(".sv").classList.remove("hidden");var t=document.querySelector(".input.sd input"),n=document.querySelector(".input.hd input");t.setAttribute("data-prescription","sv"),n.setAttribute("data-prescription","sv_hd");var o=$this.checkout.steps[3].getPrescriptionType();if(e.hd){var s=$this.checkout.steps[3].getPrice("sv_hd").discounted,a=$this.checkout.steps[3].getPrice("sv_hd").original;document.querySelector(".input.hd").classList.remove("disabled"),document.querySelector(".input.hd .price-container").innerHTML='

+$'+s+'

(Retail $'+a+")

",document.querySelector("[show]."+o+" .error").classList.add("hidden")}else document.querySelector(".input.hd").classList.add("disabled"),document.querySelector(".input.hd .price-container").innerHTML='Unavailable',document.querySelector("[show]."+o+" .error").classList.remove("hidden");var c=$this.checkout.steps[3].getPrice("sv").discounted,r=$this.checkout.steps[3].getPrice("sv").original;document.querySelector(".input.sd .price-container").innerHTML='

+$'+c+'

(Retail $'+r+")

"})),page("browse.details.components.checkout.steps.3.reset",(function(){var e=document.querySelector("#step-3-content .input.sd input"),t=document.querySelector("#step-3-content .input.hd input");document.querySelector("#step-3 .step-price").setAttribute("retail-price",0),e.checked=!1,t.checked=!1,document.querySelectorAll("#step-3-content [show]").forEach((function(e){e.setAttribute("show","")}))})),page("browse.details.components.checkout.steps.3.select",(function(e){var t=e.getAttribute("data-type"),n=e.getAttribute("data-prescription"),o=$this.checkout.steps[3].getPrescriptionType();if(document.querySelector("#step-3 .step-name .selected").innerText=e.nextElementSibling.querySelector(".title").innerText,document.querySelector("[show]."+o).setAttribute("show",t),$this.checkout.steps[3].setPrice(),$this.cache[3].selected===n)return!1;$this.checkout.steps.lock(4),$this.cache[3].selected=n,$this.cache[3].hd="hd"===t,components.cache.save(),$this.checkout.steps.unlock(4)})),page("browse.details.components.checkout.steps.3.setPrice",(function(){var e=document.querySelector("#step-3-content input:checked").getAttribute("data-prescription"),t=document.querySelector("#step-3 .step-price"),n=$this.checkout.steps[3].getPrice(e);t.setAttribute("retail-price",n.original)})),page("browse.details.components.checkout.steps.3.validate",(function(){return!(!$this.cache[3].selected||"boolean"!=typeof $this.cache[3].hd)})),page("browse.details.components.checkout.steps.4.init",(function(){var e=$this.cache[2].style,t=$this.cache[3].hd,n=$this.checkout.steps[3].getPrescriptionType(),o=api.prices[e][n];t&&api.prices[e][n+"_hd"]&&(o=api.prices[e][n+"_hd"]),Object.keys(o.materials).forEach((function(e){var t=o.materials[e],n=(document.querySelector(".input."+e+" input + label"),t-t*api.settings.discount);if("boolean"==typeof t)return document.querySelector(".input."+e).classList.add("hidden");if(t>=0&&(0===t?(document.querySelector(".input."+e+" .price-container").innerHTML="Included","plastic"===e&&api.isRimless&&(document.querySelector(".input."+e+" .price-container").innerHTML="Unavailable",document.querySelector(".material-messages .error").innerText="Plastic lenses unavailable on rimless frames",document.querySelector(".input."+e).classList.add("disabled"))):document.querySelector(".input."+e+" .price-container").innerHTML='

+$'+n+'

(Retail $'+t+")

",document.querySelector(".input."+e).classList.remove("hidden")),$this.cache[4].selected===e){var s=document.querySelector(".input."+e+" input");s.checked=!0,$this.checkout.steps[4].select(s)}})),$this.checkout.steps[4].recommendMaterial()})),page("browse.details.components.checkout.steps.4.recommendMaterial",(function(e){var t="getRecommendedMaterial?sku="+SKU;$this.cache[3].hd&&(t=Parameter.set("hd",!0,t)),document.querySelector("#step-4-content .recommended")&&document.querySelector("#step-4-content .recommended").classList.remove("recommended"),components.user(t,(function(e){if(e){e=e.replace("-","_").trim();var t={plastic:"Standard lenses are recommended based on your prescription",poly:"Thin lenses are recommended based on your prescription",trivex:"Scratch Resistant lenses are recommended based on your prescription",high_index:"Ultra Thin lenses are recommended based on your prescription"};document.querySelector("#step-4-content .input."+e).classList.contains("hidden")&&(e="high_index"),document.querySelector("#step-4-content .input."+e).classList.add("recommended"),t[e]&&(document.querySelector(".recommend-message").innerText=t[e])}}))})),page("browse.details.components.checkout.steps.4.reset",(function(){document.querySelector("#step-4 .step-price").setAttribute("retail-price",0),document.querySelector("#step-4-content .navigation").classList.add("disabled"),document.querySelector(".material-messages .error").innerHTML="",document.querySelector("[show].material-messages").setAttribute("show",""),document.querySelectorAll("#step-4-content .input").forEach((function(e){e.classList.add("hidden")}))})),page("browse.details.components.checkout.steps.4.select",(function(e){var t=e.getAttribute("data-material");document.querySelector(".material-messages").setAttribute("show",t),$this.cache[4].selected=t,components.cache.save();var n=0;try{n=e.parentNode.querySelector(".retail").innerText.split("$")[1].replace(")","")}catch(e){}document.querySelector("#step-4-content .navigation").classList.remove("disabled"),document.querySelector("#step-4 .step-price").setAttribute("retail-price",n),document.querySelector("#step-4 .step-name .selected").innerText=e.nextElementSibling.querySelector(".title").innerText+" - "+e.nextElementSibling.querySelector(".material").innerText})),page("browse.details.components.checkout.steps.4.validate",(function(){return!!$this.cache[4].selected}));//# sourceMappingURL=app.js.map setTimeout(function() { Defer.js("/js/app.js?id=7770"); }, 1000);
How to Order Glasses Online from Eyemart Express (2024)
Top Articles
Latest Posts
Article information

Author: Stevie Stamm

Last Updated:

Views: 6159

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Stevie Stamm

Birthday: 1996-06-22

Address: Apt. 419 4200 Sipes Estate, East Delmerview, WY 05617

Phone: +342332224300

Job: Future Advertising Analyst

Hobby: Leather crafting, Puzzles, Leather crafting, scrapbook, Urban exploration, Cabaret, Skateboarding

Introduction: My name is Stevie Stamm, I am a colorful, sparkling, splendid, vast, open, hilarious, tender person who loves writing and wants to share my knowledge and understanding with you.