TryGlasses

Virtual glasses try-on

Creator: Empha Empha (Empha)

Need help installing this extra?

Screenshots

About TryGlasses

TryGlasses adds a virtual try-on widget to your eyewear store. Customers can try glasses using their camera directly on product pages. The plugin auto-injects a customizable "Try On" button, connects to the TryGlasses API for 3D model rendering, and includes a full admin panel for managing API keys, catalog mapping, widget styling, and product digitization — no coding required.

Information

Released
June 17, 2026

Supported Database
MySQL

License
MIT

Supported Versions
2.8 - Current

Downloads
8

Instructions

Installation

Install the package via MODX Package Manager.

Configuration

  • Go to Extras → TryGlasses in the MODX Manager
  • In the Connection tab, enter your TryGlasses API URL and API Key
  • Click Check Connection to verify, then Save
  • In the Field Mapping tab, select your product template and catalog container
  • In the Widget tab, customize the button appearance
  • Button Placement

    Add <div id="tryglasses-tryon-block"></div> to your product template where you want the button, or specify a CSS selector in Widget settings.

    Manual Snippet Usage

    Use [[TryGlasses]] in your template for manual widget placement.

    New in 1.0.1-pl

    1.0.1-pl (2026-05-07)

    • Fix: JS SyntaxError caused by broken _lang() string concatenation (2 lines)
    • Fix: missing in Widget tab caused Digitization & Imports tabs to be invisible
    • Fix: MODX 2.8 compatibility — removed PHP return type hints from CMP controller
    • New: miniShop2/miniShop3 adapter for native product data extraction
    • New: GenericTV adapter as fallback for non-shop sites
    • New: shop detection badge on Field Mapping tab
    • Improved: CSS tab switching compatible with MODX ExtJS layout

    Current releases

    1.0.1-pl
    View | Download
    June 17, 2026
    2.8 - Current