=== Tryly.ai Virtual Try-On for WooCommerce ===
Contributors: tryly
Tags: virtual try-on, woocommerce, clothing, fashion, apparel
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 2.0.4
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Transform your fashion store with virtual try-on technology. Let customers see how clothes look on them before buying - boost sales, reduce returns!

== Description ==

**The #1 Problem Facing Fashion Retailers: "Will this look good on me?"**

Finally, there's an answer. Tryly.ai Virtual Try-On lets your customers see exactly how your clothes will look on their body before they buy.

**🚀 Results Fashion Brands Are Seeing:**
* **3x Higher Conversions** - Customers who try-on are 3x more likely to purchase
* **64% Fewer Returns** - When customers see the fit, they keep what they order
* **Higher Average Order Value** - Confident customers buy more items
* **Better Customer Satisfaction** - No more sizing surprises

**Watch It In Action:**
[See the LIVE DEMO](https://www.tryly.ai/content-images/GIF%20Tryly%20in%20action.mp4) - Watch how virtual try-on transforms the shopping experience!

= Perfect For Fashion Retailers =

* **Clothing Brands** - Tops, bottoms, dresses, outerwear
* **Online Boutiques** - Stand out from competitors
* **Fashion Designers** - Showcase your creations perfectly
* **Apparel Stores** - Any fashion e-commerce business

= How It Works (So Simple!) =

1. **Install & Activate** - Download from WordPress plugins
2. **Connect to Tryly.ai** - One-click OAuth connection
3. **Choose Your Plan** - Start free or pick what fits your store
4. **Go Live** - Try-on buttons appear automatically on all products

= Key Features =

* **Zero Setup Required** - Works automatically on all products
* **Mobile-First Design** - Perfect experience on phones and tablets
* **Lightning Fast** - Won't slow down your store
* **Fully Customizable** - Match your brand colors and style
* **Real-Time Analytics** - Track try-on rates and conversions
* **Multiple Plans** - From small stores to enterprise solutions

= The Fashion Retailer's Dream =

**Stop Losing Sales to Uncertainty**
Every day, potential customers leave your store thinking "I'm not sure how this will look on me." With virtual try-on, they can see exactly how your clothes fit their body.

**Turn Browsers into Buyers**
When customers can visualize themselves in your products, hesitation disappears. They go from "maybe" to "add to cart" instantly.

**Slash Return Rates**
Returns are killing your profits. When customers see the perfect fit before ordering, they're confident in their purchase and keep what they buy.

== Installation ==

**Super Simple Setup - No Tech Skills Required!**

1. **Install** - Download from WordPress plugins or upload to `/wp-content/plugins/`
2. **Activate** - Click activate in your WordPress admin
3. **Connect** - Go to Tryly.ai in your admin menu and click "Connect with Tryly.ai"
4. **Choose Plan** - Select from Lite, Plus, Pro, or Studio plans based on your store size
5. **Done!** - Try-on buttons appear automatically on all your product pages

== Frequently Asked Questions ==

= Is it really that easy to set up? =

Yes! It's literally 4 steps. Install, connect, choose plan, done. No coding, no configuration, no headaches.

= What plans are available? =

**Lite Plan** - Perfect for small stores ($12.97/month - 120 try-ons)
**Plus Plan** - For growing businesses ($27.97/month - 300 try-ons)  
**Pro Plan** - For established brands ($59.99/month - 700 try-ons)
**Studio Plan** - For large enterprises ($147.97/month - 1,600 try-ons)

= Will this work with my theme? =

Absolutely! It works with any WooCommerce theme automatically.

= What types of clothing work best? =

Perfect for tops, bottoms, dresses, jackets - any clothing item where fit and style matter.

= Do I need a Tryly.ai account? =

Yes, but creating one is part of the setup process and takes 30 seconds! You'll choose your plan during setup.

= Will this slow down my website? =

Not at all! The technology loads in the background and won't affect your page speed.

= Can I customize how it looks? =

Yes! Match your brand colors, button text, placement - make it feel like part of your store.

= Is it mobile-friendly? =

Absolutely! Most fashion shopping happens on mobile, so we made sure it's perfect on phones.

== Screenshots ==

1. One-click connection setup
2. Try-on button on your product pages
3. Customer seeing clothes on their body
4. Dashboard analytics and customization
5. Perfect mobile experience

== Privacy Policy ==

This plugin connects to Tryly.ai's service to provide virtual try-on functionality.

**What Data is Used:**
* Product images from your store
* Customer photos during try-on (processed securely and deleted within 72 hours)
* Basic connection settings

**Privacy Promise:**
* Customer photos are never stored permanently
* No personal data is collected or shared beyond try-on processing
* All processing happens securely and privately
* Full details: https://www.tryly.ai/privacy

== Changelog ==

= 2.0.4 - 2026-02-12 =
* Fix: Try-on button now appears reliably on all WordPress themes
* Fix: Improved widget loading for better compatibility across different hosting setups
* Added: Built-in diagnostic tools for faster support resolution

= 2.0.3 - 2025-11-25 =
* Updated: API endpoint migrated to tryon.tryly.ai subdomain for improved performance
* Infrastructure: Dedicated subdomain for try-on service

= 2.0.2 - 2025-11-20 =
* Critical Fix: Widget placement settings now apply correctly on live WordPress sites
* Fixed: API field name mapping (snake_case vs camelCase) preventing custom placements from working
* All dashboard customizations (placement, style, colors, badges) now work immediately

= 2.0.1 - 2025-11-20 =
* Fixed: Widget settings now update immediately on live WordPress sites after dashboard changes
* Improved: Compatible with latest API optimizations and Edge blocking security enhancements
* Technical: Updated to use /api/widget-settings/load endpoint for faster, more reliable settings loading

= 2.0.0 =
* **Faster Performance** - Brand new optimized widget engine loads 50% faster
* **Better Stability** - Improved reliability on all WordPress configurations and caching plugins
* **Smoother Experience** - Enhanced widget initialization and button loading
* **Smarter Credit System** - Credits are checked before try-on begins (preventing failed generations)
* **Same Great Features** - All customization options work even better now
* **WordPress Optimized** - Completely rebuilt for optimal WordPress compatibility
* Note: This is a major update - all stores will automatically receive the improved widget

= 1.0.20 =
* Improved: Enhanced compatibility with caching plugins (WP Rocket, W3 Total Cache, etc.)
* Improved: Widget now works perfectly on sites with aggressive caching enabled
* Improved: Better detection of try-on buttons on catalog and showroom websites
* Improved: Automatic widget placement near booking and appointment buttons
* Improved: Support for more Elementor page builder layouts
* Fixed: Widget now loads reliably on all WordPress configurations
* Fixed: Resolved issues where widget wasn't displaying on some product pages

= 1.0.19 =
* Improved: Better compatibility with more WordPress themes
* Improved: Widget now displays correctly on all product pages
* Improved: Faster loading and better performance
* Fixed: Resolved display issues on some websites
* Fixed: Widget updates now refresh automatically

= 1.0.18 =
* Fix: Widget now correctly loads from tryly.ai on all WordPress sites
* Fix: Resolved API endpoint 404 errors on some WooCommerce installations
* Improved: Added daily cache busting to ensure widget updates are loaded
* Improved: Better support for Spanish/Portuguese product URLs (/producto/, /produto/)

= 1.0.17 =
* Fix: Improved login redirect during WordPress connection process
* Fix: Better handling of authentication flow for seamless connection

= 1.0.16 =
* Fix: Resolved "Security verification failed. Missing state token" error
* Improved: WordPress connection now properly generates and uses CSRF state tokens
* Enhanced: Better error handling during connection process

= 1.0.15 =
* Security: Enhanced CSRF protection with required state verification
* Security: Added secure token-based disconnect functionality  
* Performance: Immediate widget settings updates (no caching delays)
* Admin: Now displays Tryly account email instead of WordPress admin email
* Dashboard: Improved connection status visibility in Tryly dashboard
* Reliability: Fixed crypto import for runtime stability
* API: Aligned WordPress settings endpoint with backend format
* Database: Added migration for unique constraints and security columns

= 1.0.10 =
* Added demo video link to showcase virtual try-on in action
* Updated plugin assets with animated GIF banner and icon
* Enhanced plugin description for better user understanding

= 1.0.8 =
* Security: Added state token verification for OAuth connection (CSRF protection)
* Security: Improved API URL encoding using add_query_arg
* Compatibility: Better WooCommerce detection for multisite installations
* Code Quality: Removed unused script loader code
* Privacy: Added comprehensive privacy disclosure
* Maintenance: Added proper uninstall cleanup routine

= 1.0.7 =
* Improved connection stability
* Enhanced error handling
* Updated widget loading mechanism
* Fixed admin interface issues
* Optimized API communication

= 1.0.0 =
* Initial release
* One-click OAuth connection
* Automatic widget injection
* Dashboard synchronization
* WooCommerce compatibility

== Upgrade Notice ==

= 2.0.4 =
Recommended update: Try-on button now works on all themes. Improved reliability and compatibility.

= 1.0.8 =
Important security update: Adds CSRF protection for OAuth connections. All users should upgrade immediately.

= 1.0.0 =
First release of Tryly.ai Virtual Try-On for WooCommerce
