=== Lesuto Chameleon Commerce ===
Contributors: lesuto
Tags: ecommerce, shopping, store, products, checkout
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.0.66
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Monetize your traffic. Add a free WP store with products included. We handle the logistics. You advertise, they buy on your domain, you get paid.

== Description ==

**Lesuto Chameleon Commerce** is the official WordPress integration for [Lesuto](https://www.lesuto.com), a Social Commerce as a Service platform.

Turn your WordPress site into a complete, zero-stock Lesuto storefront in minutes.

If you already have readers, followers, or website traffic, you do not need to buy inventory, manage a warehouse, handle shipping, or spend hours on technical maintenance. Lesuto Chameleon Commerce connects your existing WordPress site to a fully functional store with checkout on your domain, automated fulfillment, and built-in AI.

Stop sending readers away to external affiliate sites like Amazon. With Lesuto, your audience stays on your domain, checks out on your site, and trusts your brand, while you collect the commission.

= We Handle the Tech and Growth, So You Don't Have To =

Building an e-commerce platform takes endless maintenance, updates, and optimization. Lesuto handles the heavy lifting behind the scenes.

**Core AI that gets smarter over time.** Built-in AI tools keep optimizing product recommendations, search, and conversion paths across the network. Your store improves without you writing a line of code.

**A supplier network that keeps growing.** New verified suppliers join Lesuto, giving you fresh products to subscribe to and sell.

**Zero technical overhead.** Catalog management, storage, and AI processing run on the Lesuto cloud, so your WordPress site stays light.

= How It Works =

Product catalogs, automated fulfillment, AI tools, and commission management run on Lesuto. You set up the store from Lesuto Command Center, then connect this plugin.

1. **Sign up free.** [Create your Lesuto account](https://www.lesuto.com/sign-up) to sell from the catalog, sell your own products, or both, then copy your Site Key from Command Center.
2. **Curate your inventory.** In Lesuto Command Center, pick products from verified suppliers, upload your own, or list items for other merchants to sell.
3. **Connect WordPress.** Install the free plugin, paste your Site Key under Lesuto → Commerce, and create store pages in one click.
4. **Get paid.** Visitors buy on your domain. Suppliers ship catalog orders. Lesuto handles tracking and AI optimization. You collect commissions.

= 3 Flexible Ways to Sell =

* **Sell catalog products (zero stock).** Pick products from verified Lesuto suppliers. Suppliers hold inventory and handle shipping. You earn commission on every sale.
* **Sell your own products.** Add your own goods in Command Center and sell them alongside catalog items on your site.
* **Let other merchants sell for you.** Upload your products to Lesuto, set your commission rate, and let other merchants on the network market and sell your inventory.

= Why Site Owners Choose Lesuto Chameleon Commerce =

* **Keep visitors on your site.** Checkout happens on your WordPress domain. Unlike affiliate links that send readers away, you keep the traffic, trust, and SEO.
* **Hands-off fulfillment.** Suppliers pack and ship catalog orders. You do not print labels or manage logistics.
* **Upfront commissions.** See the payout before you subscribe to a product. Rates are visible on every item, with automated payouts.
* **Matches your site.** Shop, cart, and checkout pick up your theme colors and fonts. Fine-tune look in Lesuto Studio on the live page.

= Key Features =

* **Built-in AI.** Product recommendations and cross-sell that keep updating as the network learns.
* **Expanding supplier catalog.** New verified products as suppliers join, across many niches.
* **Zero upfront cost and zero stock risk.** Launch a storefront without buying inventory that might not sell.
* **On-domain checkout.** Readers stay on your site from product to payment.
* **Automated logistics and tracking.** Order routing, tracking, and returns for catalog orders are handled for you.
* **Real-time analytics.** Impressions, sales, orders, and payouts in Command Center.

= Who Is This Plugin For? =

* **Bloggers and content creators.** Monetize natively without sending traffic out through affiliate links.
* **Publishers and niche communities.** Add a store tailored to your audience without stuffing your WordPress database with a full catalog.
* **Product creators and brands.** Sell your own goods, or let other Lesuto store owners distribute your catalog.

= External Services =

This plugin is a Lesuto commerce service host. After you enter a Site Key and click Connect, it talks to Lesuto servers. A Lesuto merchant account is required.

* **api.lesuto.com** - GraphQL catalog data, prerendered HTML for SEO, signed webhooks, checkout, and optional behavioral recommendations. A Lesuto merchant account and Site Key are required. Privacy: https://www.lesuto.com/legal/privacy
* **sdk.lesuto.com** - Chameleon Commerce JavaScript SDK loaded on storefront pages after you connect (this plugin is a Lesuto commerce host; the SDK is the service runtime, not a third-party library CDN). Privacy: https://www.lesuto.com/legal/privacy
* **hub.lesuto.com** - Optional Hub links and promo banners only when you enable those settings in wp-admin
* **Blog Sync featured images** - When Blog Sync is on, a signed Lesuto webhook can copy a featured image into this site's WordPress Media Library. WordPress downloads the file from a Lesuto HTTPS host (*.lesuto.com) with core download_url. The file is stored locally. Shoppers do not load that URL as plugin CSS or JS.

Catalog, inventory, checkout, and payments are provided by Lesuto. See [Terms of Service](https://www.lesuto.com/legal/terms) and [Privacy Policy](https://www.lesuto.com/legal/privacy).

= Shortcode Examples =

* `[lesuto_products]` - Product grid
* `[lesuto_search]` - Faceted search
* `[lesuto_product]` - Single product (pretty URL `/product/{slug}`)
* `[lesuto_cart]` - Cart
* `[lesuto_blog]` - Store blog from Lesuto Social Studio
* `[lesuto_newsletter]` - Optional SDK newsletter (or keep a WordPress form)

== Installation ==

Connect this plugin to your Lesuto store. Create a free Lesuto account, copy a Site Key from Command Center, then paste it in WordPress.

1. Create a free Lesuto account
    * Go to [www.lesuto.com/sign-up](https://www.lesuto.com/sign-up)
    * You can sell from the catalog, sell your own products, or both
2. Sign in to Command Center
    * Open [admin.lesuto.com](https://admin.lesuto.com)
    * Confirm your email if asked
    * If you already have an account, start here
3. Copy your Site Key from Lesuto
    * In Command Center, open **Store → Commerce SDK**
    * Create a website for this WordPress site if you do not have one yet
    * Copy the **Site Key**
4. Add your domain
    * In Command Center, open **Store → Domains**
    * Add this WordPress site's domain (what shoppers type in the browser)
    * Set the type to **WordPress**
    * Save
5. Install the plugin in WordPress
    * Go to **Plugins → Add New**
    * Search **Lesuto Chameleon Commerce**
    * Click **Install Now**, then **Activate**
    * Or upload the zip from **Plugins → Add New → Upload Plugin**
6. Connect
    * In the left sidebar, open **Lesuto → Commerce**
    * Paste the Site Key
    * Click **Connect**
7. Create shop pages
    * Still on **Lesuto → Commerce**, use **Set Up Store Pages**
    * Create Shop, Cart, Checkout, and Account
8. Add pages to your menu (optional)
    * Open **Appearance → Menus**
    * Add Shop, Cart, and Sign In if you want them in the nav
    * Shopper Sign In is `/sign-in`
    * That is not `wp-login.php`

If `/shop` is empty after connect:
    * Add catalog products or your own products in Command Center
    * Refresh `/shop`

== Frequently Asked Questions ==

= Where do I get the Site Key? =

From Lesuto, not from WordPress.

* Sign in at [Command Center](https://admin.lesuto.com)
* Open **Store → Commerce SDK**
* Open or create the website for this WordPress site
* Copy the Site Key
* Paste it under **Lesuto → Commerce** and click Connect

= Do I already have a WordPress login? =

Yes. WordPress `wp-login.php` is for site users (comments, membership, wp-admin). Lesuto shopper sign-in is a separate page (`/sign-in` with `[lesuto_login]`) for cart, favorites, and reviews. The plugin does not replace `wp-login.php`. Add Sign In to your menu if you want both.

= Do I need WooCommerce? =

No. This is a standalone Lesuto storefront. It does not require WooCommerce.

= Does this replace my WordPress site? =

No. Themes, posts, pages, forms, and other plugins stay yours. The store sits on the pages you choose.

= Is JavaScript required? =

Shoppers need JavaScript to browse, add to cart, and check out. Search engines still get a full HTML product page.

= Where does the store blog come from? =

The store blog can show posts from Lesuto Social Studio. You can also copy those into normal WordPress posts for archives and SEO plugins. Your own WordPress posts are not overwritten.

= How does pricing work? =

This WordPress plugin is free. Selling from the Lesuto marketplace catalog is free: no inventory to buy, and Lesuto handles checkout while catalog owners ship and handle returns. You can also sell your own products or list yours for other merchants. Optional paid Lesuto plans add extra platform tools. Checkout uses Stripe through Lesuto.

= Can I customize the look? =

The shop follows your theme colors and fonts. You can fine-tune cards and layouts in Lesuto Studio on the live page. Your theme CSS and other plugins stay in place.

= What data is sent to Lesuto? =

After you connect a Site Key, the plugin requests catalog, cart, and account data from Lesuto for your store. Optional analytics events are sent only when cookie consent allows. See the [Privacy Policy](https://www.lesuto.com/legal/privacy).

== Screenshots ==

1. Marketplace: sell from the Lesuto catalog, sell your own products, or let others sell yours. The platform is FREE.
2. Live WordPress shop (Home Stratosphere) with category filters and real catalog products on the theme
3. Style the live product page without leaving the shop
4. Every shop block you can drop onto a WordPress page
5. Create shop, cart, checkout, and account pages in one click
6. Chrome companion: see every shop block on the live page (install the Chrome extension separately)

== Changelog ==

= 1.0.66 =
* Setup tab in wp-admin matches Installation: Lesuto sign-up, Command Center Site Key, add your WordPress domain, Connect, then store pages.

= 1.0.65 =
* Installation: create a free Lesuto merchant account, copy the Site Key from Command Center (Store → Commerce SDK), connect in WordPress, then Set Up Store Pages.
* FAQ: where the Site Key comes from (Lesuto, not WordPress). Shopper Sign In vs wp-login.php stays in the FAQ.

= 1.0.64 =
* WordPress.org listing: handshake icon, new banner, short description, and long description (zero-stock store, three ways to sell, checkout on your domain).
* Requirements and How It Works link to Lesuto sign-up (https://www.lesuto.com/sign-up).
* Plugin header description matches the directory short description.

= 1.0.63 =
* WordPress.org gallery: marketplace first, then live shop, Studio, shortcodes, store pages, and Chrome Toolkit
* Listing copy matches 87 lesuto_ shortcodes and 68 unique SDK modules
* Screenshots and banner/icon assets for the plugin directory

= 1.0.62 =
* Shopper Sign In is a dedicated page (/sign-in), not wp-login.php. Favorites and reviews use that page.
* Forgot password, reset password, and verify-email pages are created when the store is connected.

= 1.0.61 =
* Powered-by storefront credit is never auto-enabled. It stays off until you check the setting.
* Blog Sync featured images sideload only from Lesuto HTTPS hosts into the local Media Library.
* Hub promo and powered-by credit are never auto-enabled on upgrade.

= 1.0.60 =
* Pretty URLs, catalog sync, and localized JS config use the lesuto_ prefix so they match query vars and classes.

= 1.0.59 =
* Plugin Check: translators comments, escaped shortcode HTML, sanitized request input, SDK script version.
* PHP prefix is lesuto_ (classes Lesuto_*, options lesuto_site_key). Existing lcc_* options are copied on upgrade.

= 1.0.58 =
* Legacy [chameleon_*] shortcodes still hydrate as aliases of [lesuto_*].

= 1.0.57 =
* Settings are tabbed: Setup, Store, Pages, Shortcodes, Tools, Legal.
* Catalog type menus are checkboxes from this Site Key's product types.
* Shopper country uses location detection on one merchant channel.
* wp-admin sidebar uses the Lesuto logo.

= 1.0.56 =
* Header Hub Login, cart, and currency stay locked in the theme nav slot.
* Sign-in popup stays open while Hub connects the session.

= 1.0.55 =
* wp-admin menu is Lesuto, with Commerce as the first screen. Plugins list uses Open Lesuto.
* Theme override CSS from Command Center is sanitized before output.
* Tested up to WordPress 7.1.

= 1.0.54 =
* Public shortcodes now use the lesuto_ prefix (for example [lesuto_products]). Existing [chameleon_*] tags in page content are rewritten on upgrade.
* Pinterest catalog feed is /feed/lcc-pinterest/. Old /feed/pinterest/ and /rss.xml still resolve to that feed.
* Cookie banner and powered-by credit stay off until you enable them. The cookie banner uses this site's WordPress privacy policy page, not a Lesuto credit link.
* Top-level wp-admin menu is Lesuto, with Commerce as the first screen so later Lesuto tools can sit under the same parent.

= 1.0.53 =
* WordPress.org review: enqueue admin JS, opt-in Hub promo and powered-by credit, REST HMAC on /verify, Plugin URI, External Services disclosure
* Product RSS at /feed/lcc-pinterest/ with /feed/pinterest/ and /rss.xml kept working

= 1.0.52 =
* Top-level Chameleon menu in wp-admin (no longer buried under Settings)
* Product RSS at /feed/pinterest/ and /rss.xml after connect; one item per product

= 1.0.51 =
* Pinterest catalog RSS: g:availability, image-required items, optional product-type filter hook

= 1.0.50 =
* Generic SDK host: Site Key connect, shortcodes, SEO, prerender, webhooks
* Opt-in Lesuto store chrome (off by default)
* One-click grouped store page templates
* Store blog shortcode plus optional native WordPress post sync
* Compatible with WordPress 6.0 through 7.1 and PHP 8.0+

= 1.0.0 =
* Initial public release

== Upgrade Notice ==

= 1.0.66 =
Setup in wp-admin now matches Installation: Lesuto sign-up, Command Center Site Key, add your domain, then Connect. Plugin behavior is unchanged.

= 1.0.65 =
Clearer Installation: sign up at Lesuto, copy your Site Key from Command Center, then Connect in WordPress. Plugin behavior is unchanged.

= 1.0.64 =
WordPress.org listing copy, banner, and icon. Plugin behavior is unchanged from 1.0.63.

= 1.0.63 =
WordPress.org listing screenshots and copy. Plugin behavior is unchanged from 1.0.62.

= 1.0.62 =
Shopper sign-in stays on /sign-in. WordPress login is unchanged. Password recovery pages are created when you connect.

= 1.0.61 =
Powered-by credit stays off until you enable it under Lesuto → Commerce. Blog Sync images copy from Lesuto hosts into your Media Library.

= 1.0.55 =
Lesuto is the top-level wp-admin menu (Commerce). Cookie banner and powered-by stay off until you enable them. Shortcodes are [lesuto_*].

= 1.0.54 =
Shortcodes are [lesuto_*]. Published [chameleon_*] tags are rewritten when you update. Cookie banner and powered-by stay off until you enable them. Pinterest RSS is /feed/lcc-pinterest/; /feed/pinterest/ and /rss.xml still work.

= 1.0.53 =
Hub promo and powered-by credit stay off on new installs unless you enable them under Lesuto → Commerce. Product RSS also lives at /feed/lcc-pinterest/. Existing /feed/pinterest/ and /rss.xml still work.

= 1.0.52 =
Chameleon is a top-level wp-admin menu. Product RSS is at /feed/pinterest/ and /rss.xml after you connect.

= 1.0.51 =
Pinterest catalog RSS includes g:availability. Use /feed/pinterest/ in Pinterest Business.
