Guide · about 5 minutes
How to add virtual try-on for glasses to a Shopify store
Shoppers buying sunglasses online want to know one thing: will these suit my face? A virtual try-on answers it on the product page. Here is how to set one up, from picking the kind of try-on to checking it on a phone before your customers see it.
Steps
01 Decide between live 3D and photo try-on
There are two kinds of eyewear try-on on Shopify. Photo try-on asks the shopper for a selfie and sends back an edited picture with the glasses drawn in. Live 3D try-on opens the camera and keeps a 3D model of the frame on the shopper's face while they move.
Photo try-on is simpler to feed, since it only needs your product photos. Live 3D is closer to a shop mirror: the shopper can turn their head and see the side of the frame, and with a well-built app the video stays on their phone. If your frames differ mostly in shape and size, live 3D shows that better. If you sell hundreds of styles and can't get models for them, photo try-on may be the practical start.
02 Check your theme
Most try-on apps add their button as an app block, which needs an Online Store 2.0 theme. Dawn and the other free Shopify themes qualify, and so do most current paid themes. To check, open Online Store › Themes › Customize, go to a product page and click Add block. If you see an Apps tab there, you're fine.
03 Install a try-on app
Search the Shopify App Store for "virtual try-on glasses" and compare a few. Look at what devices they support, whether shoppers need to download anything, where the camera video goes, and how they charge (per product, per try-on, or flat). Most offer a free trial, so you can test with your own frames before paying. Our comparison of Shopify eyewear try-on apps lists the options side by side.
With AR Try-on you install it from its App Store page, approve the plan, and the app opens inside your Shopify admin. Plans run from $30 to $90 a month, and each starts with a 7-day free trial.
04 Get a 3D model for each frame
Live try-on needs a 3D model of every frame you want to show. You have three options:
- Ask your supplier. Many eyewear makers have 3D files from their design process. Ask for binary glTF (.glb); most apps accept it.
- Pay a 3D artist. Ask for the model at real-world scale, with the lenses as a separate part so their tint can be set.
- Generate it from photos. Some apps build the model for you. In AR Try-on this is called Create with AI: pick a product, and it turns the product photos into a model you can review before it goes live.
Keep each file small. Under about 5 MB loads fast on a phone connection. For more on each option and what a good model needs, see how to make 3D models of glasses from product photos.
05 Connect each model to its product
Upload the model in the app and link it to the matching Shopify product. In AR Try-on the app finds the bridge and hinge points of the frame on its own, so the glasses sit on the nose without you placing anything by hand. If a frame looks too large or small on the face, the size slider on the model fixes it.
06 Add the Try-On button in the theme editor
Go back to Online Store › Themes › Customize and open a product template. Click Add block, choose the try-on app's block, and drag it near the Add to cart button, where shoppers decide. Save.
Some apps, AR Try-on included, also offer an app embed under App embeds in the theme editor. Turning it on adds the button to every product that has a model, without placing a block on each template.
07 Test it on a real phone
Open a product page on your own phone, tap the button and allow the camera. Then check:
- The frame sits on the bridge of the nose, not floating above it.
- It stays in place when you turn your head left and right.
- Tinted lenses look tinted and clear lenses look clear.
- It works in Safari on an iPhone and in Chrome on Android.
- Closing the try-on returns you to the product page with your place kept.
Try it in a dim room too. Poor light is where face tracking struggles first.
After launch
Tell shoppers the feature exists. A line under the product title ("Try these on with your camera") or a short clip in your product images gets more people to tap it. Then watch your return reasons for a few months. "Didn't suit me" and "looked different than expected" are the reasons a try-on should reduce. Our page on whether virtual try-on reduces returns covers what the research shows and how to measure it.