Virtual Try-On for PrestaShop Clothing Stores

By Raheel Gul5 min read
Editorial illustration for Virtual Try-On for PrestaShop Clothing Stores

Quick answer

Yes. PrestaShop lets a developer add a module that places content on the product page, and a try-on API can do the image work behind it. Corlen has no one click PrestaShop module, so this route needs a developer to build the module and a small server endpoint that holds your API key.

PrestaShop stores tend to be customised, multilingual and quietly proud of it. A try-on button is welcome. A try-on button that breaks the French checkout is not.

Can you add virtual try-on to PrestaShop?

You can, in two ways. Install a ready made try-on module if one suits your catalog, or connect a try-on API to your product pages through a module of your own.

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

What are your options on PrestaShop?

  • A ready made module: quickest to start, but you inherit its design, its limits and its pricing model.
  • A try-on API inside your own module: more work up front, full control over button placement, copy and flow.
  • An agency build: the same API route, with someone else carrying the development and the testing.

A packaged module saves time if it renders your garments well. The API route suits stores that already have a PrestaShop developer, or want the button to look like part of the theme rather than a guest.

Editorial illustration for Virtual Try-On for PrestaShop Clothing Stores
An editorial illustration for this article

How does the API route work in a PrestaShop module?

PrestaShop's developer documentation describes displayProductAdditionalInfo as a product page hook that receives the product, called from the theme's product template. A module registers the hook when it installs, and if the module skips that step, PrestaShop never calls it. That is the usual place to put a button.

  1. Create a module that registers the product page hook and renders a try-on button and photo upload.
  2. Send the shopper's photo, with the product's garment image, to an endpoint in your module.
  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 on the page.

The key stays on the server. Put it in the page script and anyone with dev tools can copy it, which is a pricey way to learn how browsers work. The API guide for developers walks through the request flow, and the docs list the exact fields.

Check the hook name and template against your own theme and PrestaShop version. Custom themes sometimes skip a hook, and community guides also report two modules fighting over the same hook, so look at the module positions page if your button shows up twice.

What should you test before launch?

Start with the free live demo to see how your garments render, before any developer time goes into it.

  • 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.
  • Languages: button text, privacy notice and error messages in every language your store runs.
  • Page speed: load the script only on product pages and only when the shopper clicks the button.
  • Caching: test with your cache enabled, since it can interfere with a job status request.

If the demo mangles your best seller, no module will fix that. Better to learn it in ten minutes than in a release cycle.

Should you build it or buy a module?

Buy if you have no developer and a packaged module 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, and the Magento guide shows the same API pattern on another custom platform.

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 module for PrestaShop?

No. Corlen ships a Shopify app and a WooCommerce plugin. On PrestaShop you connect through the Corlen API, which needs a developer to build a small module and a server side step that holds your API key.

Which PrestaShop hook should hold the try-on button?

The displayProductAdditionalInfo hook is a common choice, since PrestaShop's documentation describes it as a product page hook that receives the product. Check that your theme actually calls it, because custom themes can differ.

Where should the API key live on PrestaShop?

On the server, never in the storefront JavaScript. The shopper's browser sends the photo to an endpoint in your module, and that code calls the try-on API with the key.

Can I test the results before paying a developer?

Yes. The live demo at corlen.io/try is free, so you can run a few of your own garment photos through it and judge the output before any development time goes into a module.

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