Read WooCommerce product gallery images and selected variation data, then call the widget modal.
Plugin or snippet-based storefront integration
WooCommerce Virtual Try-On Modal
Add AI virtual try-on to WooCommerce product pages with a lightweight modal and product JSON handoff.
Core endpointPOST /api/v1/virtual-fitting
OpenAPIhttps://api.wearfits.com/doc
Agent context/llms.txt and /llms-full.txt
Use server-side WordPress AJAX or REST proxy endpoints when API keys must stay private.
Map WooCommerce product categories to WEARFITS garment categories before opening the modal.
Machine-readable surfaces
Built for developers and AI agents
- /llms.txt concise AI context and link map
- /llms-full.txt expanded endpoint and integration context
- /docs/openapi-summary.md human and agent-readable API summary
- /widget/tryon.js embeddable storefront modal loader
Key Questions
Can this run as a WordPress plugin?
Yes. The integration can be packaged as a plugin that enqueues the widget script and injects product JSON on product pages.
Does the widget need product feed changes?
No. The widget can accept the current product JSON directly from the product page template.
Can API keys stay server-side?
Yes. A WooCommerce integration should proxy WEARFITS calls through WordPress when using service API keys.