Virtual Try-On for Webflow Ecommerce Stores

By Raheel Gul5 min read
Editorial illustration for Virtual Try-On for Webflow Ecommerce Stores

Quick answer

Yes. Webflow lets you add custom code to a page, and a try-on API can do the image work behind it. Corlen has no Webflow app, so this route needs a custom code embed for the button and a small server endpoint that holds your API key, because Webflow itself cannot run server side code.

Webflow stores are usually designed with care. Someone chose that exact shade of grey, and nobody wants a stranger's widget wrecking it.

Can you add virtual try-on to a Webflow store?

You can, in two ways. Embed a ready made try-on widget, or connect a try-on API to your product pages with your own code.

Corlen fits the second way. We build a Shopify app and a WordPress plugin, not a Webflow app, and it is kinder to say so before you brief a freelancer.

What are your options on Webflow?

  • A third party widget: you paste a snippet and go. Fastest to start, but you inherit its look, its limits and its pricing.
  • A try-on API with your own code: more setup, full control over the button, copy and flow.
  • A freelancer or agency build: the same API route, with someone else carrying the work and the testing.

A widget saves time if it renders your garments well. The API route suits stores that care how the button looks, or that already work with a developer.

Editorial illustration for Virtual Try-On for Webflow Ecommerce Stores
An editorial illustration for this article

How does the API route work on Webflow?

Webflow's help center says its Code Embed element supports HTML, CSS in style tags and JavaScript in script tags, and that you cannot run server side languages in it. It also says the element needs a paid Workspace or an active Site plan. That shapes the whole design: the page can show the button, but something else has to talk to the API.

  1. Add a Code Embed to your product template with a try-on button and a photo upload.
  2. Send the shopper's photo, with the product's garment image, to an endpoint you host, such as a serverless function.
  3. Have that endpoint call the Corlen API with your key and start a job.
  4. Poll the job status, then show the finished image in the page.

The key stays on that endpoint. Paste it into the page script and anyone with dev tools can copy it, which is a costly way to meet browser inspectors. The API guide for developers walks through the request flow, and the docs list the exact fields.

One caveat: we found no Webflow documentation on reading product data inside a Code Embed on an Ecommerce template, so confirm on your own site how to pass the garment image URL through.

What should you test before launch?

Start with the live demo to see how your garments render, before any build time goes in.

  • Garment photos: flat, whole, plain background. Our guide to photographing clothing for virtual try-on has the checklist.
  • Your hardest pieces: layered looks, long hems, heavy prints.
  • Page speed: load the script only on product pages and only when the shopper taps the button.
  • Mobile: most shoppers will upload a photo from a phone, so test the upload there first.

If the demo mangles your best seller, no embed will fix that. Better to learn it in ten minutes than after a launch.

Should you build it or use a widget?

Use a widget if you have no developer and one renders your garments well. Build if you want control over the experience or already have technical help. Our post on build versus buy for virtual try-on covers that decision in more detail.

Either way, measure it. Pick a handful of products, compare returns against a similar period, and follow the steps in how to measure virtual try-on results. When you want to see your own pieces rendered, try Corlen on your own photo.

Frequently asked questions

Is there a Corlen app for Webflow?

No. Corlen ships a Shopify app and a WooCommerce plugin. On Webflow you connect through the Corlen API, which means a small custom code embed on the product page and a server step that holds your API key.

Can I use a Webflow Code Embed to add virtual try-on?

Webflow's Code Embed accepts HTML, CSS and JavaScript, so the button and upload form can live there. It cannot run server side code, so the call to the try-on API has to go through a separate endpoint you host.

Where should the API key live on Webflow?

On a server you control, such as a serverless function, never in the page script. The browser sends the photo to your endpoint, and that endpoint calls the try-on API with the key.

Do I need a paid Webflow plan?

Webflow's help center says the Code Embed element needs a paid Workspace or an active Site plan. Check the current plan rules on Webflow's own pages before you commit.

Ready to add real try-on to your store?

Install Corlen on Shopify in minutes, or build it into your own platform with the developer API.

Similar posts

See it on your own photo

Corlen shows your customers how any garment looks on their own body, in seconds. Try it free, no account needed.

Try Corlen free