Virtual try-on on Shopify: plan the product-page handoff
Prepare a Shopify theme pilot with explicit product images, selected-variant updates, localized entry points and a tested route back to purchase.
Read guideConnect a button with the JavaScript snippet. Your store supplies the product image directly, together with its name, category and product-page link for returning to shop.
<script
src="https://virtualtryon.store/widget.js"
data-product-image="https://your-shop.example/product.jpg"
data-product-name="Product name"
data-product-url="https://your-shop.example/product"
data-category="fashion"
data-locale="en"
data-mode="button"
defer
></script>Pass the selected variant's image URL, product name, category and purchase link. Check them before publishing; no shop-page extraction is required.
Demo shopCheck whether your theme permits the snippet, how product variants are exposed and which security or consent rules apply.
Pass a direct product-image URL, name, category and product-page link. Check image access and update these values when the selected variant changes.
Configure a product-page button or a floating button. Shoppers add their photo inside the hosted dialog and return to your product page when they close it.
Test supported phones and browsers, loading and error states, privacy information and agreed measurement events before release.
The integration is independent of your store’s hosting. Compatibility still depends on your theme, security policies and access to product data.
Discuss your integrationPrepare a Shopify theme pilot with explicit product images, selected-variant updates, localized entry points and a tested route back to purchase.
Read guideMap WooCommerce selections to a hosted preview, handle resets and missing images, and test the theme, cache and purchase return path.
Read guideBuild a variant-level readiness matrix covering category mapping, usable reference images, stable URLs, visual checks and catalog maintenance.
Read guide