Skip to content

leduc92/SwagTryOn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwagTryOn

Mobile-first virtual try-on plugin scaffold for Shopware 6.

What it does

  • Adds product custom fields so a merchant can enable try-on per product.
  • Injects a "Virtual try-on" entry point into the storefront buy box.
  • Generates a mobile landing page at /try-on/{productId} for camera-based preview.
  • Uses MediaPipe hand landmarks in the browser to anchor a watch or ring overlay.
  • Renders the QR code locally in the storefront instead of calling an external QR API.

Product setup

For each try-on capable product:

  1. Enable Virtual try-on.
  2. Pick the wear mode: watch or ring.
  3. Upload a transparent PNG somewhere public and set it as Overlay asset URL. If you leave this empty, the product cover image is used as a fallback.
  4. For watches, also upload optional transparent PNGs for:
    • Overlay asset URL (left angle)
    • Overlay asset URL (right angle) The try-on page switches between them as the wrist rotates.
  5. Fine-tune Overlay scale, Horizontal offset, and Vertical offset.

Asset guide

To avoid the watch showing as a solid rectangle, the source image itself must be a real transparent PNG.

Use these rules:

  • transparent background with alpha channel
  • tight crop around the watch only
  • no white or colored canvas behind the watch
  • no shadows baked into a square background
  • consistent alignment between center, left, and right angle images

If the PNG already contains a white background, the plugin cannot remove that background automatically.

Plugin config

The plugin config lets you control:

  • global enable/disable
  • MediaPipe bundle URL
  • MediaPipe WASM root
  • Hand Landmarker model URL

Notes

  • This is an MVP storefront implementation. High-end AR occlusion and physically correct 3D placement will need device-specific tuning and usually a dedicated 3D asset pipeline.
  • iOS and Android browsers behave differently for camera permissions and performance, so test on real devices early.

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors