Hair Color Try-On
Hair Color Try-On lets your customers try hair colors in real time, on a live camera, a photo they take or upload, or a model. They pick a color family and a shade, compare before and after, then go to the product page or add the shade to their cart.
Plugin URL
https://plugin.pulpoar.com/hto/<project-key>
The project key is your Hair Color project's slug or UUID in Studio.
Integration options
| Option | Platforms | Guide |
|---|---|---|
| Web Plugin + JavaScript SDK | Websites | Web Integration |
| WebView | iOS, Android, React Native, Flutter | Mobile Integration |
The plugin runs in an iframe or WebView. Use the JavaScript SDK to listen to events, for example to add shades to your cart.
Requirements
- HTTPS. The camera doesn't work over HTTP.
- Camera permission. The browser asks for it the first time the customer uses the live camera or takes a photo. In a mobile app, also handle the permission in your native code.
- Allowed Origins. Add your website domains to the project in Studio before going live.
If a device can't run the live try-on fast enough, the plugin hides the live camera option and offers the photo options instead.
Setting up the catalog
Products and shades are set up in PulpoAR Studio. See the Hair Color Try-On Product Guide.
The Partner API and Analytics API are available for Makeup Virtual Try-On only.