Eyewear Virtual Try-On with Tryonixs for WooCommerce

Description

Eyewear Virtual Try-On with Tryonixs for WooCommerce adds an AR try-on button to your eyewear store. When a customer clicks it, the plugin sends the product ID, name, and image URL to the Tryonixs AR service.

This plugin is developed by ahmadkhan402. It integrates with Tryonixs but is not an official Tryonixs plugin and is not affiliated with or endorsed by Tryonixs.

Features

  • Eyewear virtual try-on on WooCommerce product pages
  • Optional try-on button on shop, category, and archive pages
  • Automatic product image URL detection from featured images and galleries
  • Per-product controls: enable/disable, external product ID, custom frame image URL
  • Configurable button text and position (before or after Add to Cart)
  • Shortcode for page builders: [eyewvitr_button id="123"]
  • Variable product support — image updates when a variation is selected
  • Lightweight — loads the external SDK only on WooCommerce and product pages

Requirements

  • WordPress 5.8 or higher
  • WooCommerce (active)
  • A Tryonixs account with a public API key (pk_live_...)
  • Eyewear products with a featured image (or custom frame image URL)

Configuration

Plugin settings (Settings AR Try-On)

  • Public API Key — Required. Your pk_live_... key from the Tryonixs service.
  • App URL — Default: https://tryonixs.com
  • SDK Script URL — Default: https://tryonixs.com/tryonixs-sdk.js
  • Button Text — Label on the try-on button (default: “Try on in AR”)
  • Button Position — Before or after Add to Cart on single product pages
  • Show on Shop Pages — Show try-on on shop, category, and archive pages

Per-product settings (Product General)

  • Enable AR Try-On — Enable or disable try-on per product (on by default)
  • External Product ID (for Tryonixs) — Optional. Must match your Tryonixs account. Defaults to SKU or wc_{id}
  • Frame Image URL — Optional transparent PNG override for AR

Shortcode

[eyewvitr_button id="123"]

Replace 123 with the WooCommerce product ID.

Installation

  1. Upload the plugin folder to /wp-content/plugins/, or install the ZIP via Plugins Add New Upload Plugin.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Settings AR Try-On.
  4. Enter your Public API Key from your Tryonixs account.
  5. Click Save Changes.
  6. Open a WooCommerce eyewear product with a featured image and confirm the try-on button appears.

FAQ

Is this an official Tryonixs plugin?

No. Developed by ahmadkhan402. Integrates with Tryonixs but is not affiliated with or endorsed by Tryonixs.

Why is the try-on button not showing?

  1. API key saved under Settings AR Try-On
  2. WooCommerce is active
  3. Product is published with a featured image
  4. Enable AR Try-On is checked on the product
  5. For page builders, use [eyewvitr_button id="PRODUCT_ID"]

Does the customer need an app?

No. AR runs in the browser. Camera permission is required when try-on starts.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Eyewear Virtual Try-On with Tryonixs for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.3.3

  • Updated plugin name to “Eyewear Virtual Try-On with Tryonixs for WooCommerce”
  • Updated text domain and slug to eyewear-virtual-tryon-with-tryonixs-for-woocommerce
  • Updated default Tryonixs service URLs to tryonixs.com

1.3.2

  • Prefixed all functions, options, hooks, and shortcode with eyewvitr_ for WordPress.org naming guidelines

1.3.1

  • Renamed to SEO-friendly “Eyewear Virtual Try-On with Tryonixs for WooCommerce”
  • Updated slug and text domain for WordPress.org trademark compliance

1.3.0

  • Renamed plugin for WordPress.org trademark guidelines
  • Clarified third-party Tryonixs integration
  • Renamed shortcode to [ar_product_tryon_button]

1.2.2

  • Fixed click handlers when SDK loaded late
  • Added visible error alerts and SDK load retry

1.2.0

  • Per-product image URLs passed to Tryonixs SDK
  • Shop/category try-on buttons

1.0.0

  • Initial release