Epox Connector for WooCommerce
Companion plugin for Epox: syncs AI product images and video, and adds Epox Try-On and a 3D configurator with AR to your product pages.
Install in
This plugin is the store-side half of the Epox integration. Install it on your WooCommerce
store and Epox can publish generated images and video straight into your products, reusing
the WooCommerce API key you have already issued — there is nothing extra to configure.
It exists because the generic WooCommerce product endpoint cannot express what the
integration needs. Without this plugin, publishing one image takes three round trips
(upload, attach, verify) and WooCommerce re-downloads the file itself, which fails on some
hosting stacks and can leave duplicates behind on a retry. With it, the whole operation
happens once, on your server, in a single transaction.
What it adds:
- One call per sync. Download, media-library registration, gallery placement and
metadata all happen server-side in one request. - Safe retries. Every media item carries an idempotency key. If Epox retries a sync,
the plugin returns the attachment it already created instead of importing a second copy. - All-or-nothing. If any part of a sync fails, attachments created during that request
are removed. A failed sync leaves no orphans in your media library. - Video support. Product video can be imported and linked to your gallery plugin’s
metadata, which the standard WooCommerce product API has no way to express. The video file
itself can be imported into your media library — not just referenced by URL — verified
against “WooCommerce Gallery Slider” (gallery-slider-for-woocommerce, formerly WooGallery). - Variation images. One generated image can be assigned across several variations
without importing it more than once. - 3D viewer with AR. When you publish a product’s 3D model from Epox, the
[epox_3d]
shortcode (or the “Epox 3D viewer” block) shows it on the product page with camera controls
and AR — Quick Look on iPhone/iPad, Scene Viewer on Android, WebXR elsewhere. The viewer is
Google’s model-viewer, bundled with this plugin (no third-party CDN); the 3D file loads only
when the shopper interacts, behind a poster image, in a fixed-size box so the page never jumps.
Source of the bundled viewer: https://github.com/google/model-viewer (release v4.4.0); its mesh
decoder: https://github.com/zeux/meshoptimizer (release v1.1.1).
Endpoints
Management routes live under epox/v1 and authenticate with your existing WooCommerce
Read/Write API key. The shopper-facing Try-On permit exchange is same-origin and returns only a
short-lived permit, never a WooCommerce key or server-held bridge credential.
GET /wp-json/epox/v1/status— reports the plugin version and capabilities.POST /wp-json/epox/v1/media-sync— import media and attach it to a product or its variations.POST /wp-json/epox/v1/media-detach— remove synced media from a product.POST /wp-json/epox/v1/tryon-bridge— Epox-only setup of the server-held Try-On bridge.GET /wp-json/epox/v1/tryon-bridge— Epox-only read-back of the bridge’s issuer and staleness
(never the credential), so a drifted or stale bridge can be repaired without waiting for a
shopper’s permit request to fail first.POST /wp-json/epox/v1/tryon-permit— product-page request for a short-lived Try-On permit.POST /wp-json/epox/v1/tryon-visibility— Epox-only batch sync of the per-product
epox_tryon_enabled visibility marker (yes/no).
Written by Joobi from the project's own listing. See the source page
1.4.1
- The plugin description now covers Try-On and the 3D configurator. No code change.
1.4.0
- New: a “View in 3D” button under the product gallery swaps the main image for the Epox 3D configurator and back.
Added automatically to products with a published Epox 3D model (turn off with the
epox_configurator_gallery_button filter), or with[epox_configurator display="gallery"]. - New: order summaries for Epox 3D analytics (see “What order data does the plugin send to Epox?”):
aggregate, signed, background, and off until Epox configures a signing key.
1.3.0
- New:
[epox_3d]shortcode and “Epox 3D viewer” block — the product’s published Epox 3D model
with AR, rendered by a bundled, pinned copy of Google model-viewer 4.4.0 (Apache-2.0; see
THIRD_PARTY_NOTICES.txt). The model loads on interaction behind a poster, in a reserved box.
Epox models are meshopt-compressed; the meshoptimizer 1.1.1 decoder (MIT) is bundled for them. GET /wp-json/epox/v1/statusadvertises theproduct_modelcapability, so Epox only offers
“Publish 3D to store” on stores that can render it.
1.2.1
- Security: the Try-On bridge now only accepts an Epox platform origin (
app.epox.ai,
platform.epox.ai) as its issuer. Previously any API key able to edit products could point
the storefront’s Try-On loader script at an arbitrary host. Developers testing against another
Epox origin can add it with theepox_tryon_allowed_issuer_hostsfilter from code.
1.2.0
- Epox now records, on each product, whether Try-On is enabled for it under your visibility
settings (product metaepox_tryon_enabled,yesorno).[epox_tryon]is opt-in and renders
only whenepox_tryon_enabledisyes, so products markednoor not yet opted in never make a
permit request — and your theme can read the same value to adjust the page. Epox still checks its
own policy on every shopper request.
1.1.7
- Adds a read-only
GET /wp-json/epox/v1/tryon-bridgestatus endpoint (issuer origin and
staleness, never the credential), so Epox can detect a Try-On bridge this store no longer holds,
has retired as permanently rejected, or that points at a different Epox environment — and repair
it automatically when your Try-On settings page loads, instead of waiting for a shopper’s
request to fail first. In particular, reinstalling this plugin no longer needs a manual
re-save in Epox: the bridge re-provisions itself on the next settings load.
1.1.6
- The Try-On widget now hides itself on your storefront whenever it cannot load, instead of
showing shoppers an error they cannot act on. Nothing is lost: when you are logged in with
permission to manage the store, the same failure is spelled out in place — what happened, what
to do about it, and a note that your customers see none of it. - That answer is computed on the permit request, not baked into the page, so a full-page cache
warmed by an admin can never show the diagnostic message to a shopper. - Forwards the platform’s new “store is not connected to a workspace” code.
1.1.5
- A permit rejection that can never succeed on retry — the platform does not recognise this
store’s widget key, or the bridge credential has been rotated away — now retires the stored
bridge instead of failing every storefront request forever.[epox_tryon]renders nothing
until Epox reconfigures it (re-enable Try-On in your workspace), rather than showing shoppers
an error only you can fix. - Logs the issuer’s status and error code to the PHP error log under
WP_DEBUG, so a broken
Try-On install can be diagnosed from the store instead of guessing at a generic 503.
1.1.4
[epox_tryon]now forwards specific “widget disabled” / “out of try-on credits” errors from
the platform instead of collapsing every failure into a generic unavailable message — lets the
storefront loader hide the widget silently in those expected cases rather than showing an error.- Reserves the widget’s aspect ratio up front to avoid a layout shift once it mounts.
1.1.3
- Adds the
[epox_tryon]shortcode. Place it anywhere — product description, a text widget,
a page builder’s shortcode block — and it renders the storefront widget itself; the workspace’s
publishable widget key is stored server-side at enable-time and never needs to be copied.
1.1.2
- Adds the server-side Try-On permit bridge for connected stores. Epox configures the connector
through its existing authenticated API; storefront code receives only a short-lived permit.
1.1.1
media-detachwithdelete_filesnow also removes the video file an imported thumbnail
points at. Previously only the thumbnail itself was deleted, orphaning the raw video
attachment in the media library on every video removal.
1.1.0
media-syncitems accept avideoobject (in addition to the existingvideo_url
string) to import the video file itself into the media library — not just reference an
already-hosted URL — then write the imported attachment’s own URL as the video meta.
Idempotent and rolled back atomically along with its thumbnail, same as everything else.
Newvideo_uploadcapability reported bystatus.
1.0.0
- Initial release:
status,media-syncandmedia-detachendpoints, idempotent media
import, atomic rollback, video metadata bridging and variation image assignment.
1.4.0
- New: a “View in 3D” button under the product gallery swaps the main image for the Epox 3D configurator and back.
Added automatically to products with a published Epox 3D model (turn off with the
epox_configurator_gallery_button filter), or with[epox_configurator display="gallery"]. - New: order summaries for Epox 3D analytics (see “What order data does the plugin send to Epox?”):
aggregate, signed, background, and off until Epox configures a signing key.
1.3.0
- New:
[epox_3d]shortcode and “Epox 3D viewer” block — the product’s published Epox 3D model
with AR, rendered by a bundled, pinned copy of Google model-viewer 4.4.0 (Apache-2.0; see
THIRD_PARTY_NOTICES.txt). The model loads on interaction behind a poster, in a reserved box.
Epox models are meshopt-compressed; the meshoptimizer 1.1.1 decoder (MIT) is bundled for them. GET /wp-json/epox/v1/statusadvertises theproduct_modelcapability, so Epox only offers
“Publish 3D to store” on stores that can render it.
1.2.1
- Security: the Try-On bridge now only accepts an Epox platform origin (
app.epox.ai,
platform.epox.ai) as its issuer. Previously any API key able to edit products could point
the storefront’s Try-On loader script at an arbitrary host. Developers testing against another
Epox origin can add it with theepox_tryon_allowed_issuer_hostsfilter from code.
1.2.0
- Epox now records, on each product, whether Try-On is enabled for it under your visibility
settings (product metaepox_tryon_enabled,yesorno).[epox_tryon]is opt-in and renders
only whenepox_tryon_enabledisyes, so products markednoor not yet opted in never make a
permit request — and your theme can read the same value to adjust the page. Epox still checks its
own policy on every shopper request.
1.1.7
- Adds a read-only
GET /wp-json/epox/v1/tryon-bridgestatus endpoint (issuer origin and
staleness, never the credential), so Epox can detect a Try-On bridge this store no longer holds,
has retired as permanently rejected, or that points at a different Epox environment — and repair
it automatically when your Try-On settings page loads, instead of waiting for a shopper’s
request to fail first. In particular, reinstalling this plugin no longer needs a manual
re-save in Epox: the bridge re-provisions itself on the next settings load.
1.1.6
- The Try-On widget now hides itself on your storefront whenever it cannot load, instead of
showing shoppers an error they cannot act on. Nothing is lost: when you are logged in with
permission to manage the store, the same failure is spelled out in place — what happened, what
to do about it, and a note that your customers see none of it. - That answer is computed on the permit request, not baked into the page, so a full-page cache
warmed by an admin can never show the diagnostic message to a shopper. - Forwards the platform’s new “store is not connected to a workspace” code.
1.1.5
- A permit rejection that can never succeed on retry — the platform does not recognise this
store’s widget key, or the bridge credential has been rotated away — now retires the stored
bridge instead of failing every storefront request forever.[epox_tryon]renders nothing
until Epox reconfigures it (re-enable Try-On in your workspace), rather than showing shoppers
an error only you can fix. - Logs the issuer’s status and error code to the PHP error log under
WP_DEBUG, so a broken
Try-On install can be diagnosed from the store instead of guessing at a generic 503.
1.1.4
[epox_tryon]now forwards specific “widget disabled” / “out of try-on credits” errors from
the platform instead of collapsing every failure into a generic unavailable message — lets the
storefront loader hide the widget silently in those expected cases rather than showing an error.- Reserves the widget’s aspect ratio up front to avoid a layout shift once it mounts.
1.1.3
- Adds the
[epox_tryon]shortcode. Place it anywhere — product description, a text widget,
a page builder’s shortcode block — and it renders the storefront widget itself; the workspace’s
publishable widget key is stored server-side at enable-time and never needs to be copied.
1.1.2
- Adds the server-side Try-On permit bridge for connected stores. Epox configures the connector
through its existing authenticated API; storefront code receives only a short-lived permit.
1.1.1
media-detachwithdelete_filesnow also removes the video file an imported thumbnail
points at. Previously only the thumbnail itself was deleted, orphaning the raw video
attachment in the media library on every video removal.
1.1.0
media-syncitems accept avideoobject (in addition to the existingvideo_url
string) to import the video file itself into the media library — not just reference an
already-hosted URL — then write the imported attachment’s own URL as the video meta.
Idempotent and rolled back atomically along with its thumbnail, same as everything else.
Newvideo_uploadcapability reported bystatus.
1.0.0
- Initial release:
status,media-syncandmedia-detachendpoints, idempotent media
import, atomic rollback, video metadata bridging and variation image assignment.
Follow this listing's changes (Atom feed)