=== Headless Connect for Wix: changelog ===

The full release history. readme.txt lists only the latest releases.

== Changelog ==

= 1.26.13 =
* Events: an event with a description in the editor saves. Rich text from WordPress was sent to Wix with empty parts in the wrong shape, and Wix answered "Expected an object".
* Events: a new event appears once in All Events. The background sync could copy it from Wix before the save had linked it, which left two posts for one Wix event.
* Events: dates on the calendar, event pages and event cards are in your WordPress language and date format. They used Wix's own date text, which is in the Wix site's language.
* Events: an RSVP event no longer shows "Sold out" after a sync. Wix reports an event without tickets as sold out, so only a ticketed event can be sold out now, and RSVP events keep their RSVP button.
* Pricing plans: a free plan (price 0) saves. Wix doesn't allow a free plan that renews, so a free plan is sent without a billing cycle or free trial, and the form says so.

= 1.26.12 =
* Fixes from the live-site QA run. Store: Manual orders show each item, variant and quantity, and Create order works once Wix has priced the order. The order page names the payment method ("Payment via Array" is gone). Test-mode orders no longer count as sales or as proof that checkout takes payments. A coupon deleted in Wix is removed from the cart before checkout, with a note.
* Manage Apps: an app removed in Wix (or with Uninstall) disappears at once, because installed state now comes from Wix's installed-apps list. An app the API key can't read says which permission to add instead of waiting forever, and offers Install or Check again. After Install, a notice says where the app's menu is. Front-end "not installed" notes all point to Wix → Manage Apps.
* Members: when Wix never verifies a member's email, the account page offers "Confirm my email" with a code, so orders, gift cards and email settings open. Connect with Wix registers the real sign-in page and an https redirect domain, and keeps them in step when the account page changes. Joining a free plan works. The login bar shows the signed-in member, not the WordPress user. Sign-in and sign-up forms say "You're signed in as …". New [wix_signed_in] and [wix_signed_out] shortcodes.
* Includes both 1.26.11 builds (Connect with Wix without waiting, and the Payments page). The dashboard's "Check that the Wix connection works" step ticks when connected. Older AI chats show WordPress links instead of Wix dashboard links.

= 1.26.11 =
* Connect with Wix: no waiting and no API key. Right after setup, while Wix is still switching on the site's own access (a few minutes, sometimes longer), orders, bookings and customers already work through your Wix sign-in. The plugin then switches to the site's own access by itself: it checks every minute with a fresh token (Wix fixes a token's permissions when it is issued), renews a token Wix refuses, and checks your apps as soon as access arrives.
* Admin menu: nothing is assumed. A site that isn't connected shows only Wix → Home, Settings and Manage Apps (no Loyalty, Marketing or AI menus from an earlier connection); an app's screens appear only after Wix confirms that app is installed, and Disconnect or a project switch forgets the old project's apps. Nothing is deleted and direct links keep working.
* Wix Blog is no longer part of the plugin: its posts list, sync, [wix_blog] shortcode, block, Elementor widget, AI tools, search type and app entry are removed. Posts already copied into WordPress stay until you uninstall the plugin.
* Payments: the page now does the work instead of asking you to say you did it. Connect Wix Payments (cards, Apple Pay and Google Pay) right in WordPress: enter your name, what you sell and your country, accept the Wix Payments terms, and the account is created. Once connected, a button takes you to Wix to verify your identity and add a bank account for payouts, which only Wix can do.
* Payments: PayPal, Stripe, Square and manual payments have no Wix API, so an "Open Accept Payments in Wix" button opens that exact Wix page in a new tab. The "I've set up payments" button and the list of payment options that did nothing are gone.
* Payments: the page says whether checkout is really taking payments (paid orders) or whether Wix Payments is connected, and links the orders waiting for payment.
* Store home: the "Set up payments" task is ticked by itself when Wix Payments is connected or the store has a paid order. It can no longer be marked done by hand.

= 1.26.10 =
* WordPress.org readiness: the plugin passes the official Plugin Check with no errors or warnings, including its experimental checks.
* The readme shows only the latest releases; the full history moved to changelog.txt in the plugin folder.
* The readme now lists the Wix developer documentation pages (dev.wix.com) the AI Assistant reads, and names the bundled Wix Madefor font and its license.
* Admin menu icons, the store's Coming soon page, the event calendar embed and the Connect with Wix sign-in window print their CSS and script through WordPress instead of raw tags.
* The plugin header no longer links to a private repository.

= 1.26.9 =
* Connect with Wix: no API key needed any more. Setup saves the site's own Wix app credentials (encrypted, removed on Disconnect or uninstall), and wp-admin uses them for orders, bookings, customers, Wix Home and the AI Assistant once Wix switches on access, which takes Wix up to about 30 minutes for a new connection. The page checks by itself; an API key still works, and wins when one is saved.
* Connections: the connected card now says in plain words what works (your website showing Wix content; managing your business from WordPress), what is still on its way, which business apps the project has, and what to do next, with links to Manage Apps and Wix → Home. It replaces "Your storefront is ready".
* Connections: before you connect, the card explains in three steps what Connect with Wix does. After "Finish setup", the card lists the apps added and any Wix refused (with a link to Manage Apps), and that list survives the page reload.
* Connections: the API key card is now "Wix API key", says what it is for, and folds away as an advanced option once it isn't needed.
* Connect with Wix: "Finish setup" no longer fails with "Installation was rejected because it does not satisfy the preconditions" (seen with the Online store package). The new project is created first, then each business app is added one at a time, with Loyalty and Gift Cards after the apps they build on. If Wix still refuses an app, the project connects anyway and a short note names that app so you can add it later from Manage Apps.
* Everywhere: the "Add your Wix API key and Site ID on the Connections page" messages (Bookings, Orders, Members, Reviews, Content Sync, test mode, the AI Assistant, Site Health and editor-only notices) now say what to do for this site: connect with Wix, wait for Wix to switch on access, or add an API key for a site connected by hand. The WordPress Dashboard setup checklist uses the same words.
* Manage Apps: an app Wix doesn't answer for yet (a brand-new API key or connection is refused for a few minutes) shows "Waiting for Wix" and is checked again every minute, instead of "Couldn't check — your API key isn't allowed". An app the setup just added stays Installed meanwhile. Wix Blog's "No blog instanceId found" now reads as Not installed.

= 1.26.8 =
* Connections: the connected "Connect with Wix" card now shows the project name for every connection. Sites connected by hand or before 1.26.7 get it from Wix once (and again only after switching projects).
* Connections: an "Open Wix dashboard" button on the connected card opens the project in Wix, in a new tab, so you can inspect it.

= 1.26.7 =
* Connections: once this site is connected to a Wix project, the "Connect with Wix" card shows a short summary (the project's name and Site ID) instead of the full setup form. "Create a new project or connect a different one" opens the setup when you need it, and "Disconnect" (after a confirmation) unlinks the site from its project without deleting anything in Wix; your Wix sign-in stays, so you can set up a new project right away.
* Connections: the card no longer shows a connected site as not connected when the day-old connection check has expired.
* Manage Apps: switching to a different Wix project (or disconnecting) forgets which apps the old project had, so menus follow the new project.

= 1.26.6 =
* Admin: the sidebar now reads top to bottom as a workflow instead of a pile of apps. Wix (Home, Settings, Manage Apps) stays the control centre; then what you sell (Stores, Bookings, Events, Pricing Plans); then the people (Customers, Members Area, Loyalty); then money and growth (Marketing, Analytics, Payments); then content and extra apps (Wix Apps, Blog); and AI last, as the assistant that spans everything. Payments moved out of the Wix menu into its own item, and the mirrored Wix Blog posts get a "Blog" menu of their own once Wix Blog is detected. Every menu still appears only when its Wix app is installed, and no page address changed, so bookmarks keep working.
* Manage Apps: the Uninstall button on an installed app's card is a small grey outlined button on the same line as the Installed badge, turning red only when you hover or focus it, instead of an underlined link.

= 1.26.5 =
* Manage Apps: every installed app now has an Uninstall button next to its badge (when you are signed in with Wix). It asks first, removes the app from your Wix site through the Wix sign-in, waits until Wix confirms, and then the app's admin menu disappears. An app that has pages or elements in the Wix Editor can't be removed from here; the card says so and tells you where to delete it in Wix.

= 1.26.4 =
* Admin: no more "Open in Wix", "Edit in Wix" or "Wix dashboard" buttons and links anywhere in wp-admin — Store (orders, products, discounts, settings, payments, marketing), Bookings, Events, Pricing Plans, Members, Loyalty, Gift Cards, Reviews, Wix Apps, Home, Setup, Connect with Wix, the product editor panel and test mode. Where something can only be changed in Wix, the screen says where in words. Setup tasks that used to open Wix now open the matching WordPress page (Payments, Store settings, Connections).
* Developers: a JS unit test fails the build if a Wix dashboard link is added back anywhere in the plugin.

= 1.26.3 =
* AI Assistant: answers never link to the Wix dashboard any more. The assistant is told to point at WordPress admin pages (products, orders, coupons, bookings, events, plans, contacts, members and so on), and every manage.wix.com / wix.com link that still slips into an answer is rewritten to the matching WordPress page before it is shown or saved. Wix developer docs and help-center links are left alone.

= 1.26.2 =
* AI Assistant: coupons meant for every product now reach Wix with `limitedToOneItem: false`. Wix treats a missing flag as true, so the 1.26.1 fix still produced one-item coupons on a live site.
* Pricing plans: a perk that reads cut off on the plan card is cut off in Wix itself (Pricing Plans → the plan → Perks); the plugin shows the perk text unchanged.
* Developers: the Docker test tiers run on a CI runner whose Docker daemon does not share the runner's home directory (the WordPress test suite is cloned into the checkout when the wp-env mount is empty); WordPress.org Plugin Check passes without errors.

= 1.26.1 =
Fixes from a live-site QA run (IONOS hosting, block theme):
* Events: RSVP no longer sends visitors to the Wix site host (a 404 on Headless sites) — RSVP events get an on-site name/email form that registers the guest with Wix; ticketed events keep the Wix checkout hand-off. A WordPress page at /events/ that holds the events shortcode, block or widget is now treated as the events page (no clash notice; calendar links go there). `[wix_events_calendar]` honours `show_title="0"` and `title_tag`, and the Elementor widget no longer prints two headings.
* Members: when no account page is chosen, sign-in links go to the first published page holding `[wix_account]`, `[wix_login]`, `[wix_register]` or `[wix_login_bar]` instead of a missing /account/ URL; Members Area → Settings warns when none exists. When Wix demands a CAPTCHA for sign-up, visitors see plain copy and managers get a separate muted line with the fix; manager diagnostics never share the visitor's red line again. The login bar sits inside a block theme's content column.
* Store: Store home's "View store" goes to the page holding `[wix_products]`. "Add to cart" shows "Added ✓ · View cart" on every card, with or without a header cart icon. `[wix_products]` with no `columns` fills the row responsively. The thank-you page says "We couldn't find an order for this visit" instead of spinning forever. Card excerpts and blog cards cut on a word with an ellipsis; plan cards show their whole description and perks.
* Sync: gift-card mirroring works again (the query sorted on a field Wix doesn't allow), and a 403 on the display-currency lookup is remembered for a day instead of being logged on every run.
* Admin: the Home setup card and the Setup page agree on progress; primary buttons on WDS screens have readable labels; the booking drawer shows the service image; the sales chart shows "No sales in this period" instead of a flat €0–€1 line.
* AI Assistant: Stop ends the turn before the next step and marks the answer incomplete; deleting a chat is only blocked while that chat is still answering, with a message saying so; coupons meant for "all products" are no longer created as one-item coupons; the suggested prompt uses the store's currency.

= 1.26.0 =
* **Install Wix apps from WordPress** — Wix → Manage Apps now has an Install button on every app your Wix site doesn't have yet. It installs the app through your Wix sign-in, waits for Wix to finish, and reloads with the app's menu in place. Sites connected only with an API key get a link to sign in with Wix first.
* **The plugin shows only what your Wix site has** — each Wix app's menus, shortcodes, blocks and Elementor widgets appear when the app is installed (from WordPress or in Wix) and go away when it's removed. A fresh install shows just Home, Settings and Manage Apps. Payments shows only with Stores, Bookings or Restaurants Orders. If Wix can't be reached, nothing is hidden.
* **Removed apps leave the public site like they do in Wix** — when Stores, Bookings, Events or Pricing Plans is removed, its product, service, event and plan pages answer 404 and leave the sitemap, and their sync stops. Nothing is deleted: install the app again and the pages come back. When Members Area is removed, member pages and sign-in are hidden and members-only content stays locked.
* Installed apps are now re-checked every 12 hours, so apps removed in Wix are noticed.

= 1.25.5 =
* **AI Assistant, rebuilt** — on by default once Wix is connected (switch it off on the AI page). It can now work with everything on your Wix site, not just orders, products, bookings, events and contacts: it calls any Wix API and looks up Wix's own API docs when it needs the exact request. Reads happen straight away; every change waits for your Confirm, and the card shows the exact Wix request it will send. A turn with several changes is confirmed one at a time, and a paused confirm survives a reload.
* **Every AI chat is saved** — a history list beside the chat (Today, Yesterday, …) to reopen, search, rename or delete past conversations. Nothing is trimmed from a saved chat, and if the earlier AI page had answered a question of yours, that conversation becomes the first one in the list. Chats are private to the admin who had them and removed on uninstall.
* **A better chat** — progress as it works ("Looking up orders…"), a Stop button, a mark on each step (done, failed or declined), formatted answers with tables and links to your Wix dashboard, Copy, Try again and suggested first questions.

= 1.25.4 =
* **Checkout test mode** — one switch on Wix → Connections (or "Test mode" in the admin bar) puts your Wix checkout into Wix's Test mode, so people trying the site can shop, book, order and donate without paying: checkout offers only a "Test Payment" option. Every visitor sees a "Test mode" banner, admins see a notice with a Turn off button, and the plugin turns it back on in Wix every time Wix ends it after 30 minutes, until you switch it off. Covers Wix Stores, Bookings, Restaurants orders and Donations. Deactivating the plugin turns it off.

= 1.25.3 =
* **No Site ID to copy** — the Business Manager card on the Connections page no longer asks for a Site ID. The plugin reads it from your Headless project when you connect (with Connect with Wix or by saving a Client ID) and shows it under the API key. Only the API key is left to paste.

= 1.25.2 =
* **Fix: Connect with Wix on sites with a long address** — setup no longer fails with "app.name has size …, expected 50 or less". The name of the OAuth app it creates is now shortened to Wix's 50-character limit.
* **Fix: members-only events** — events that are only for members, and hidden from listings, no longer appear in the public events calendar, its REST answers or the iCal feed. A members-only event's description stays out of iCal for anyone who may not open it.
* **Fix: [wix_form] without an ID** — skips forms this site can't show (for example with a file upload) and shows the first one it can, however many forms the site has.
* **Connections page order** — Wix → Settings → Connections now shows Connect with Wix and your Headless project first, then the Business Manager API key, then Storefront style, with the list of shortcodes last.

= 1.25.1 =
* **Fix: Connect with Wix and member sign-in** — the OAuth app that Connect with Wix creates now also allows the exact address member sign-in returns to. That's your chosen account page, if it isn't at `/account/`. Before, Wix could refuse member sign-in on such sites until the address was added by hand.

= 1.25.0 =
* **Connect with Wix** — set up the whole connection with one Wix sign-in. Go to **Wix → Settings → Connections** and click **Connect with Wix**. A small window asks you to sign in to Wix, or create a free account. Then either create a new Wix project with a package of business apps (Online store, Services & bookings, Events, Restaurant, Blog & community, or any apps you tick), or pick a Headless project you already have. The plugin creates the project's OAuth app with this site's member sign-in address and domain already allowed, then saves and tests the connection. There's nothing to copy or paste.
* **Manual connection stays** — the copy-and-paste way is still on the same page under "Or connect manually". It now needs fewer steps: saving the Client ID tests the connection right away, **Open OAuth apps in Wix** goes straight to the right page, and the member sign-in redirect address is shown with a **Copy** button. Hosts can turn off "Connect with Wix" with the `WIXHC_DISABLE_CONNECT_WITH_WIX` constant or the `wixhc_connect_with_wix_enabled` filter.
* **Storefront refresh** — one theme-aware design system for every Wix widget: consistent fields and buttons, cards that fit narrow columns, wider demo pages, grids that adapt to the space, and a Pro Gallery that fills its container.
* **Fix: events** — the bare events calendar address shows the calendar again (it showed the theme's archive once events were mirrored), and event pages show dates in your site's format and the event's time zone.
* **Fix: mirrored item pages** — product, service, event and plan pages no longer show an empty "Written by … in" byline.
* **Fix: members and plans** — a cancelled plan stops opening members-only content at its end date. Members-only rules now also apply to listings, SEO data and the private REST API. Listings no longer drop items past the first 500.
* **Fix: storefront details** — `[wix_form]` without a form ID shows the site's first Wix form instead of an empty space. In the Wix style, a picked booking time stays readable while the pointer is still over it. Blog posts with no body no longer print "(No content)". Account tabs no longer cut long labels like "Subscriptions" short.
* **Fix: [wix_hours]** reads Wix's opening periods correctly. Its setup hint shows only to site managers.
* **Reliability** — a full sync that stopped half-way releases its lock and continues in the background. Visitor sessions recover from an expired Wix token. Storefront errors show a plain sentence instead of raw Wix API text. Deactivating or uninstalling the plugin cleans up every scheduled task, option and transient on every site of a network.

= 1.24.0 =
* **Wix Apps menu** — a new sidebar menu (right below Loyalty) to look after your Wix apps without leaving WordPress:
  * **Form submissions** — pick any Wix form and read its submissions, newest first, labelled with the form's own field names. Delete a submission in Wix.
  * **Newsletter** — your Wix contacts by subscription status (Subscribed, Awaiting confirmation, Unsubscribed, All), with search. Add a subscriber (you confirm they agreed to receive emails) or unsubscribe an address.
  * **Portfolio** — every project, hidden ones included, with its collections.
  * **Online Programs** — every program, drafts included, with its status, access, steps and price.
  * **Site Search** — try a search to see what visitors will find.
* **Fix: Wix Apps screens** — Form submissions loads real submissions again (it called the wrong Wix endpoint), shows each answer under its form label, and keeps every answer when two fields share a label. Portfolio and Online Programs list every project and program, not just the first 100.
* **Fix: booking with a pricing plan** — a signed-in member now goes to Wix's booking checkout as themselves, so Wix can offer their plan as the payment (before, checkout opened as an anonymous visitor). The review step says when a service can be booked with a plan, asks signed-out visitors to sign in first, and marks plan-only services. My Bookings shows "Booked with your plan". "Included with: …" on service pages is read as a site visitor, as Wix requires.
* **Fix: AI Assistant** — questions that need a tool with no settings (for example "How many products do I have?") no longer fail with "Input should be an object".
* **Fix: admin styles** — the Stores, Bookings, Events and Apps screens load their own styles again; they no longer clash with the storefront's.
* **Elementor** — build and edit a whole site in the Elementor editor:
  * **Fix: live Wix content in the editor** — products, services, events, plans, blog, cart, sign-in and the other live widgets now load in the Elementor editor instead of staying on "Loading…". Changes to a widget's settings show right away.
  * **New widgets** — Wix Contact Form, Wix Business Hours and Wix Events Calendar, so every shortcode now has an Elementor widget.
  * **Style tab that works everywhere** — forms, the member widgets and the Wix apps (FAQ, menus, gallery, newsletter and more) get Text and Box style settings, and no longer show card settings that had nothing to style.
  * **Easier to find** — every Wix widget has its own icon in the panel (the Events widget had none), and an empty "You may also like" stays visible in the editor with a note.

= 1.23.0 =
* **More Wix apps on your pages** — each with a shortcode, a block (with its settings in the sidebar) and an Elementor widget:
  * **Restaurants** — `[wix_menu]` shows your Wix Restaurants menus; `[wix_table_reservation]` takes table reservations.
  * **FAQ** — `[wix_faq]` with FAQ structured data for search engines.
  * **Portfolio and galleries** — `[wix_portfolio]` and `[wix_gallery]` with a shared lightbox.
  * **Site Search** — `[wix_search]` searches your Wix content and links to its pages on this site.
  * **Newsletter** — `[wix_newsletter]` subscribes visitors to your Wix email marketing.
  * **Newsletter double opt-in** — the newsletter sends a confirmation email and subscribes the address in Wix only after the visitor clicks its link. Addresses that unsubscribed are never re-subscribed, and the form answers the same for every address.
  * **Wix Forms** — `[wix_form id="…"]` shows any Wix form and sends answers to Wix, checked against the form's rules first.
  * **Donations** — `[wix_donations]` adds a donation to the cart and continues to Wix checkout.
  * **Online Programs** — `[wix_programs]` lists programs; members join free ones in one click.
  * **Groups** — `[wix_groups]` lists your public and private groups.
  * **Referral** — `[wix_referral]` shows your referral offer and a signed-in member's own link, and tracks referred friends.
* **Loyalty menu** — Loyalty has its own sidebar menu (right below Marketing) with Program, Customers, Ways to earn, Rewards and Tiers. **Customers** lists every loyalty account (balance, earned, redeemed, tier, last activity) with search, **Adjust points** with a reason, "Update now" and "Open in Wix"; accounts are kept current by Wix webhooks, the hourly sync and a daily full check.
* **Edit the loyalty program in WordPress** — rename the program and its points, set points expiration, and activate or pause it. Add, edit, pause and delete ways to earn (store purchases, bookings, event tickets), rewards (amount off, percent off, free shipping, money off at checkout) and tiers, including tier settings. Every change is checked against Wix's rules before it's sent, keeps each tier's own settings, keeps what you typed when something is refused, and reaches the storefront at once.
* **Installed Wix apps show up sooner** — an app you install in Wix later is picked up within the hour, and Wix Loyalty at once when Wix sends its first loyalty event.

= 1.22.0 =
* **Syncs whenever it matters** — everything syncs every hour, whenever you open any of the plugin's pages in WordPress (at most every 2 minutes), and half a minute after any Wix webhook (a burst of webhooks makes one sync). All of it runs in the background. The Sync interval setting is gone: sites on a slower interval move to hourly.
* **New Wix apps switch on by themselves** — after an update, Loyalty, Gift Cards, Pricing Plans, Members, Bookings and Events are detected within a minute of opening wp-admin, and an app you install in Wix later is picked up within 6 hours (or at once with Refresh on Wix › Apps).
* **Gift cards** — a Wix Gift Card block, Elementor widget and `[wix_gift_card]` shortcode sell your Wix gift card: pick an amount (with any promotional price shown) and add it to the cart. The gift card is rendered on the server, so it shows before scripts load and search engines see it.
* **Gift card balance check** — `[wix_gift_card_balance]` (also a block and an Elementor widget) shows a card's balance, expiry and status. Checks run on your server with your Wix API key, are rate limited per visitor, and answer the same for a mistyped code and an unknown one, so codes can't be guessed.
* **Members Area Wallet** — a new Wallet tab lists the gift cards a member bought or received, with balances read live from Wix. Turn it off on the Members Area page like any other tab.
* **Marketing → Gift Cards** — every gift card sold or issued in Wix, with balance, initial value, status, recipient and sender; views by status, search by code ending, recipient or sender; Disable; "Update now" and "Open in Wix". The list is kept current by Wix webhooks and the hourly sync.
* **Privacy** — gift card recipients and senders are included in WordPress's personal data export and erasure tools.
* **Changes from Wix in minutes, not hours** — between full syncs, the plugin now asks Wix every 5 minutes for products, services, events and pricing plans that changed and applies them (every 15 minutes when Wix webhooks reach the site, since they already carry the changes). Orders, bookings and gift cards catch up on the same schedule. Nothing is ever removed by these quick checks; deletions still follow the full sync.
* **Sync health** — Wix → Content Sync shows, for each kind of Wix data the site keeps, when it last synced, how far behind its target it is, how many items it holds, the last error, when a webhook last arrived, and a Sync now button for that kind alone. WordPress Site Health warns when anything is more than twice its target behind or has failed three times in a row.
* **Product reviews (Wix Reviews)** — `[wix_reviews product="…"]`, the **Wix Product Reviews** block and Elementor widget, and an automatic Reviews section on every product page: a star summary with a 1–5 breakdown, sort (newest, highest, lowest, most helpful), star and "with photos" filters, "Show more", photos, helpful counts, the store's replies and "Verified buyer" badges, with clear loading, empty and error states.
* **Write a review** — signed-in members rate and review a product without leaving the page. The form checks Wix's rules first, and explains a second review of the same product or a review waiting for approval in plain words.
* **Stars on product cards and product pages** — read from each synced product (no extra Wix call per card), and an AggregateRating in the product's structured data.
* **Stores → Reviews** — moderate reviews in WordPress: Pending, Published and Rejected views, rating and product filters, approve, reject, reply and remove reply, also in bulk, with an "Open in Wix" link.
* **Fresh ratings** — summaries update every 15 minutes, with every product sync, and within seconds from Wix review webhooks (`wix.reviews.v1.review_*`).
* **Loyalty** — a Wix Loyalty block, Elementor widget and `[wix_loyalty]` shortcode show your rewards program (how to earn, tiers, rewards), rendered on the server. Members see their balance and tier, redeem a reward for a coupon code they can copy or apply to the cart, and can join the program in one click. Every redeem and join is checked against Wix's rules first, for the signed-in member's own account only.
* **Loyalty points widget** — `[wix_loyalty_points]` (also a block and an Elementor widget) shows a signed-in member's balance and tier in a header or sidebar.
* **Earn N points** — product pages and the cart show the points a purchase earns, when your Wix earning rules make the number exact.
* **Wallet: loyalty** — the Members Area Wallet shows the member's points, tier, unused reward coupons, rewards they can redeem now and their last 10 points entries.
* **Marketing → Loyalty** — now a WordPress screen: the program summary, every loyalty account (balance, earned, redeemed, tier, last activity) with search, **Adjust points** with a reason, "Update now" and "Open in Wix". Accounts are kept current by Wix webhooks, the hourly sync and a daily full check.
* **Privacy** — loyalty account names and emails kept on this site are included in WordPress's personal data export and erasure tools.
* **Reliable webhooks** — every Wix webhook delivery is recorded before the site answers Wix. A retried delivery is applied once; one whose update was interrupted, or found Wix busy or unreachable, is retried every 5 minutes, up to 5 times. Content Sync lists the last delivery of each Wix event, and the subscription list now covers bookings, members, plan orders, gift cards, reviews and loyalty.
* **Webhook key check** — Content Sync refuses anything that isn't an RSA public key (and accepts one pasted without its BEGIN/END lines), instead of saving it and failing every delivery.
* **Clean uninstall** — deleting the plugin now also deletes the mirrored pages, their categories, venues, organizers and calendar embeds. Tick "Keep the mirrored pages on uninstall" on Content Sync to keep them.
* **Shop toolbar** — `[wix_products toolbar="1" per_page="12"]` (and a "Shop toolbar" switch on the Elementor Products widget) adds a category filter, sort, search and page links above the grid. It works in place, keeps the address bar in step, and every view is also a plain, crawlable URL.
* **Columns per screen size** — `columns_tablet` and `columns_mobile` set the grid on tablets (up to 1024 px) and phones (up to 767 px); by default a grid shows at most two columns on tablets and one on phones. The Elementor widget's responsive Columns setting now applies at every breakpoint.
* **Product photos** — cards load a photo sized for the screen, keep their 4:3 box while it loads, never stretch small photos, and show a neutral placeholder for products without one. Product pages get a main photo with thumbnails.
* **Product page buy box** — options, customizations (free text such as an engraving, or a choice such as gift wrap) and quantity, checked before the item goes to the cart. Info sections (shipping, care, returns…) and the product's ribbon appear on the page.
* **Automatic discounts on the storefront** — products lowered by a Wix automatic discount show "20% off" with the discounted price and the list price struck through, on cards and product pages.
* **Back in stock** — an out-of-stock product page lets shoppers leave their email; Wix emails them when it's back.
* **"You may also like"** — product pages show products Wix recommends (frequently bought together, then similar categories). Also `[wix_recommendations]`, a block and an Elementor widget; turn it off in Stores → Settings → Pages.
* **On-site order confirmation** — after paying on Wix's checkout, shoppers return to your order confirmation page (`[wix_thank_you]`, a block or an Elementor widget) and see their order summary. Only the order whose checkout started in that browser is shown: a functional, HttpOnly cookie (`wixhc_checkout`, two days) links the browser to the checkouts it started. The analytics `purchase` event (with the order total) fires once.
* **My Orders** — members see their orders with details, totals, tracking links and "Buy again", in the Members Area and in a new **Wix My Orders** Elementor widget. Orders are matched by member, or by email once Wix has verified it.
* **Cart note and drawer** — the cart has "Add a note for the seller", and the cart drawer keeps keyboard focus inside while open, returns it when closed, and links to the cart page.
* **Display currencies** — `[wix_currency]` (block, Elementor widget) lets shoppers see approximate prices in the currencies you turned on in Wix. Checkout stays in your store currency.
* **Analytics** — product pages fire `view_item`; with `add_to_cart`, `begin_checkout` and `purchase`, the GA4 / Meta Pixel ecommerce funnel is complete.
* **Cart page setting** — Stores → Settings → Pages chooses the cart, order confirmation and shop pages. Without a choice, the plugin now also finds the cart on Elementor pages.
* **Marketing → Automatic discounts** — list, add, edit, turn on/off and delete Wix automatic discounts (percentage, amount off or fixed price, for every product or chosen ones, optionally above a subtotal or item count, with dates). Each change is checked against Wix's rules before it is sent.
* **Stores → Manual orders** — create an order for a customer (catalog products and custom items), review Wix's totals with shipping and tax, then create the order.
* **Settings → Shipping** — your Wix delivery profiles (regions, destinations, backup rates), read-only with a link to edit them in Wix.
* **Catalog version** — the plugin checks whether your store uses Wix's Catalog V3 and warns in wp-admin when it is still on Catalog V1.
* **AI is now the AI Assistant, on your Wix AI credits** — the AI Page Builder and AI Page Editor are removed. The Assistant always uses your Wix plan's AI credits through the connected Wix site (Claude Sonnet 5.5), so no extra key is needed: connect Wix, tick "Enable AI features" and go. About one credit per model call; credits reset monthly with your Premium plan. The Anthropic and OpenAI-compatible providers, the provider, model, base URL and API key fields and the `WIXHC_AI_API_KEY` constant are gone; saved provider settings and the stored AI key are deleted on upgrade. Pages the Page Builder already created stay as they are, and old Page Builder and Page Editor links open the Assistant.
* **AI has its own menu** — the Assistant moved from Wix › AI tools to a new **AI** menu right below Wix, with a sparkle icon. It is a single page with the AI settings ("Enable AI features", "Test AI connection") on it; they are no longer on the Connections page.
* **The Events menu says "Events"** instead of "Wix Events".
* Pricing plans: a comparison table ([wix_plan_compare], block and Elementor widget) with price, billing, free trial, setup fee, duration and every perk side by side, the highlighted plan marked; it stacks on phones.
* Plan cards show setup fees and say "Start free trial" or "Join free"; a free plan joins in one click, with no checkout.
* Buying a plan: a signed-in member goes to Wix's plans checkout as themselves and comes back to a confirmation on your site ([wix_plan_thanks], or above the plans list); members-only content opens straight away. Signed-out visitors sign in on your site first and continue with the plan they chose.
* Gated content: [wix_gated plan="…"] gains a public teaser and a paywall that names the plans that open it, with "See plans" and "Sign in". New "Wix Gated Content" block and Elementor widget.
* Members Area: a Tickets tab (the member's event tickets and RSVPs, with add-to-calendar links), Subscriptions with current and past plans, the next payment date and an inline cancel that says when access ends, and Settings with email updates and a password change. Profile adds the public name, photo, "About you" and public/private, and lets a phone or address be cleared.
* Account tabs are links (?tab=…) that follow the Back button and scroll on small screens.
* Members directory and member profile as blocks and Elementor widgets ([wix_members_directory], [wix_member_profile]); profiles show follower counts and a Follow button.
* "Included with: <plan>" on service pages for services a pricing plan includes.
* Pricing Plans → Plan orders: every plan order from a local index, with status views, search, "Cancel" and "Open in Wix"; kept current by webhooks and change detection, shown on the sync health screen.
* Members: "Open in Wix" per member; badge and plan roles are created only for badges and plans someone holds; the privacy exporter and eraser cover every synced member detail and plan order.
* Wording: "Sign in" and "Sign out" in the login bar and account page.
* Fix: the nonces handed back after a member signs in now match the new session, so their first action no longer fails once and retries.
* Fix: plans that bill a fixed number of times read Wix's current field (billingCycleCount).

= 1.21.0 =
* **No upgrade prompts** — the Dashboard "Upgrade now" card, the Plugins-screen "Upgrade" link and the Upgrade buttons on the Setup page and in the Business Manager are gone. Where a link to Wix helps, it is a plain "Open Wix dashboard" link.
* **A shorter setup checklist** — "Set up payment options" opens your Wix payment settings directly, and the "custom business email" task is gone. The checklist has seven tasks.
* **No redirect on activation** — activating the plugin leaves you on the Plugins screen, where a "not connected yet" notice links to setup. That notice now shows only on the Plugins screen, and "Dismiss" hides it for good.
* **Every storefront string can be translated** — the storefront, booking flow, member-access editor and Bookings admin texts were missing from the translation template; all of them are in it now, with a note for translators on every placeholder.
* **Complete list of external services** — the readme now lists every service the plugin or a visitor's browser may contact: Wix (APIs, media, hosted checkout and dashboard links), Google and Facebook sign-in through Wix, reCAPTCHA, OpenStreetMap, Google Maps, calendar links and the optional AI providers, with what is sent and when.

= 1.20.0 =
* **The cart runs on Wix's current Cart API** — the on-site cart, cart drawer, cart icon and checkout hand-off move from Wix's retiring Cart and Checkout V1 (removed by Wix on 1 February 2027) to eCom Cart V2. Totals now come from Wix's own calculation, so the cart shows the subtotal, any coupon discount and the amount to pay.
* **Gift cards at the cart** — `[wix_cart]` and the cart drawer gain a gift card box next to the coupon box: apply a Wix gift card code before checkout, or remove it.
* **Clear cart messages** — problems Wix reports (not enough stock, an invalid or inactive coupon or gift card, an item that's no longer sold) are shown as a sentence under the cart that says what to do next, instead of a browser pop-up. Items that went out of stock are marked in the cart.
* **Pricing plans read from Plans V3** — `[wix_plans]` reads Wix Pricing Plans V3 (the older plans API has passed its removal date), with the same cards: price and billing cycle, free trial, perks and the highlighted plan.
* **Event tickets use Wix's documented ticket API** — the ticket picker lists tickets from "Query Available Tickets", hides tickets whose sale has ended or not started, offers each pricing option of a ticket type as its own row, and reserves through Ticket Reservations only (the deprecated reservation fallback is gone).
* **CMS collections explain themselves** — `[wix_cms]` now says when a collection doesn't exist or isn't readable by visitors (for site managers, with the fix: set the collection so anyone can view content), instead of failing silently.
* **Guard against retired Wix APIs** — the test suite now fails if any retired or undocumented Wix API path is used anywhere in the plugin.
* **Consistent "Add New Service" label** — the Services list's button now reads "Add New Service" like every other content type.

= 1.19.1 =
* **Deleting a product deletes it on both sides** — moving a Wix product to the WordPress Trash now deletes it in Wix right away (it used to only hide it there, so the next sync brought it back as a draft). A product deleted in the Wix dashboard is moved to the WordPress Trash by the next sync. Emptying the Trash no longer calls Wix again, and a trashed product can't be restored because Wix no longer has it — add it again instead. Services, events, plans, blog posts and CMS items keep the old behaviour: Trash hides the item in Wix, Delete Permanently deletes it.

= 1.19.0 =
* **A booking flow that looks like one** — "Book now" opens the flow in a drawer over the page instead of squeezing a calendar into the service card. The chosen service (image, name, duration, price) heads every step; the month calendar marks days that have free times with a dot, greys out the rest and pulses while a month loads; times are chips grouped by Morning / Afternoon / Evening, with the staff name only when the day offers more than one person; the primary button is clearly off until a time is picked; and a review step (service, when, duration, who, price) sits before the single hand-off to Wix's secure checkout, which is announced in plain words. Typography and colours are inherited from the page. Mobile: full-width drawer, stacked chips, sticky action.
* **Creating a service never trips Wix's payment rules** — Wix refused services created from WordPress with "payment.options: It is mandatory to specify either payment.options.online or payment.options.inPerson as true". Leaving the price empty now makes a free service paid in person; a priced service defaults to online or in person; the Booking settings box has a Payment choice (online or in person / online only / in person); a deposit implies online-only, as Wix requires; and a new service always carries a duration (60 minutes unless typed) and online booking on. A pre-flight check of Wix's documented service rules explains a bad body in plain words before anything is sent.
* **New services show your default booking policy** — the Lead time and Maximum advance rows read the site's default Wix booking policy (cached) instead of "Not loaded from Wix yet".

= 1.18.4 =
* **Login bar is a member icon with a dropdown** — logged-out visitors see a person icon that opens "Log in" and "Sign up" (with `signup="yes"`); logged-in members see their avatar opening their name and every Members Area section (Profile, My Orders, My Bookings, Subscriptions, Settings), Dashboard for staff, and Log out. Same shortcode, block, Elementor widget and classic-menu item as before.

= 1.18.3 =
* **See Wix's answer in real time** — Members Area → Community → Troubleshooting → "Show Wix's answers" appends Wix's exact status, code and message to the error shown in the form, for every visitor, when a login, sign-up, email code, profile save or the My Orders / My Bookings list fails. Off by default; site managers always see it. Passwords are never included.

= 1.18.2 =
* **"This email already has an account" is recognised** — Wix answers a duplicate sign-up with the numeric code `-19995` ("identity email Already exists"), not the `DUPLICATE_EMAIL` its reference documents, so the plugin showed the catch-all "We couldn't create your account". Any HTTP 409 or "already exists" answer now maps to the plain message, and the form switches to Log in with the email kept, so the visitor just types their password. The error JSON carries a `reason` key for this.
* **My Orders / My Bookings recognise logged-in members** — the member-token check called Get My Member without `fieldsets=FULL`; Wix's default answer carries no login email, so every member was told "Please log in to see your account". The call now asks for the full member.
* **Profile save failures say why** — Wix's status, code and message for a failed Update Member call are recorded in the Members Area "Recent member problems" box and appended inline for site managers; a 401/403 says the API key lacks the "Manage Members" permission.

= 1.18.1 =
* **Recent sign-in problems in wp-admin** — every failed login, sign-up or email-code check is recorded with Wix's own status, code and message (never a password) and listed at the top of the Members Area page, newest first, with a "Clear this list" button. Until now that reason was only visible inline to a logged-in site manager, so a failure seen in a logged-out window or another browser couldn't be diagnosed.

= 1.18.0 =
* **Sign-in never leaves the page** — the full-page redirect introduced in 1.17.0 is gone. After Wix accepts the email and password, the member tokens are fetched in a hidden frame on the page itself (the same exchange Wix's own SDK performs). If the browser won't let that frame answer, the visitor gets one "Finish signing in" button that opens a small window; Wix returns inside that window, which hands the result back and closes itself. Google and Facebook sign-in use the same small window. The page you were on never navigates.
* **Optional: the Wix login page, in a small window** — Members Area → Community → "Sign-in page" can switch the logged-out state of `[wix_login]`, `[wix_register]`, the account page and the login bar to Wix's own login page (email, Google and Facebook sign-up, Wix's CAPTCHA, your signup form, member approval), opened in a small window that closes when done. Default stays the on-site forms. Requirements for that option: the connected Wix site published, the OAuth app's "Login URL" empty, and the account page URL in the allowed authorization redirect URIs (also needed for the small window in the default style).

= 1.17.2 =
* **Sign-up errors read Wix's field validation too** — `INVALID_ARGUMENT` answers that carry only `details.validationError.fieldViolations` (no application code) now map to the password-length or email message, and the manager diagnostic lists the violated fields. The diagnostic is never empty, so a manager can always tell an unrecognised Wix answer from an unchanged message.

= 1.17.1 =
* **Sign-up and login say what went wrong** — every error Wix documents for Register V2, Login V2 and Verify During Authentication now maps to a plain message: password length (4–100 characters), a rejected email or network, Wix's own reCAPTCHA requirement, a site that demands a custom signup form (`REQUIRE_PROFILE_COMPLETION`), a blocked account, a rejected client ID (HTTP 401), and Wix outages or empty answers. Site managers also see Wix's own status, code and message appended to the error, and with `WP_DEBUG` on the same line goes to the debug log, so "We couldn't create your account" is no longer a dead end.
* **Login redirect URI without an Account page setting** — when no account page is chosen but a published page lives at `/account/`, the redirect-based login now returns there (and the Community tab hint names that URL) instead of the page the form sits on.

= 1.17.0 =
* **Member login and sign-up finish reliably** — after Wix accepts the email and password, the browser now completes the sign-in through Wix's full-page redirect instead of a hidden iframe. The iframe depended on third-party cookies and left visitors stuck on "Working…" until a "Login timed out" error in Safari, Firefox, every mobile browser and Chrome with third-party cookies off. The account page URL must be listed under "Allowed authorization redirect URIs" in the Headless OAuth app (the Members Area → Community tab shows the exact URL); site managers see that hint inline if Wix refuses it.
* **A clearer login form** — "Continue with Google" and "Continue with Facebook" buttons carry the provider logos, buttons show what is happening ("Creating your account…", "Redirecting to Google…", "Signing you in…") and are disabled while a request runs, and errors are shown in red.
* **Storefront card images** — cards now ask the Wix image CDN for a card-sized 4:3 file (`/v1/fill/`) instead of the original, carry width and height, lazy-load, and keep a 4:3 ratio in the grid (set `--wixhc-img-ratio` to change it). The sizing rule now beats theme `img { height:auto }` resets, so a one-column grid no longer shows a page-wide square.
* **Events calendar search finds past events** — when nothing upcoming matches, the list shows "Past events matching …" with the same keyword, registration and category filters, so a site whose events have all happened no longer answers "no results" to every search.
* **Pricing plan cards, like Wix's** — `[wix_plans]`, the block and the Elementor widget now show each plan as a pricing card: the plan image, name, a large price with the currency symbol and billing period (or "Free"), a billing note ("Recurring, cancel anytime", "One-time payment", "Free plan") with the free-trial length, a "Select" button and the plan's perks as a check list. A plan marked primary in Wix is highlighted as "Most popular". Plans lay out as a pricing table (up to three across) unless `columns` or `layout` says otherwise.
* **Header login bar and cart icon survive click-hijacking scripts** — the avatar menu now toggles itself in the capture phase, closes on an outside click or Escape, and the cart icon's click handler runs in the capture phase too. Navigation-block or theme scripts that stop click propagation in the header (seen on the Extendable theme) no longer leave the menu dead.
* **Get tickets from the calendar** — List and Photo items of upcoming, joinable events show a "Get tickets" / "RSVP" / "Register" button that opens the event page with its live ticket picker. Past, ended, cancelled, sold-out and closed events show none.

= 1.16.0 =
* **Member forms in Elementor** — new Wix Member Login, Wix Member Registration and Wix Member Account widgets (the same forms as `[wix_login]`, `[wix_register]` and `[wix_account]`), plus a Wix Login Bar widget with a “Sign up” switch for Elementor headers.
* **Cart icon and login bar in classic menus** — a “Wix” box in Appearance → Menus (and the Customizer’s Menus panel) adds a Cart item, a Login bar item and a Login bar + sign up item to any `wp_nav_menu()` menu. They render live: the cart icon opens the slide-out cart with its item count, the login bar shows “Log in” or the member’s avatar and account menu.

= 1.15.0 =
* **Sync from Wix on the Home page** — a "Sync from Wix" button in the Wix › Home header runs the full sync right away (the same pass the hourly cron and Content Sync's "Sync now" run) and reports how many items were updated and removed.
* **Stores › Inventory** — one line per product variant from the mirror, with stock edited in place (Wix first, then the mirror), plus filters, search, and a Stock badge in the Store header that opens it.
* **Product images** — the product image box opens the Media Library with a drop zone, so a new product gets a real product image. Media Library images used in a description are uploaded to Wix and relinked, so they show even from a site Wix cannot reach.
* **Add New plans and events** — pricing plans get a classic "Plan pricing" form (price, billing cycle, free trial, perks) and events a "Date, time & location" form; a new item is created in Wix on first save. Writable types now say "Add New …" in the menu.
* **Publish events from WordPress** — publishing a linked draft event publishes it in Wix Events. Taking a published event back to draft, or trashing it, is still refused with a message that says to cancel it in Wix.
* **Secrets encrypted at rest** — the Wix API key and the AI provider key are now stored encrypted (libsodium secretbox, key derived from the `AUTH_KEY` and `SECURE_AUTH_KEY` constants). Existing keys are encrypted automatically the first time they are read; nothing to do. Optionally define `WIXHC_API_KEY` / `WIXHC_AI_API_KEY` in `wp-config.php` to keep a key out of the database, which locks its field on the Connections page.
* Saving a Wix API key now checks it with Wix in the same request and tells you if Wix rejected it (the key is saved either way).
* If the WordPress security keys change or the site is cloned, the Connections page asks you to re-enter the keys instead of failing silently.
* Site Health: new "Wix secrets encrypted at rest" check, recommending the two security-key constants when they are missing.
* Storefront grid cards: product images fill the card width and the button stays pinned to the bottom, so a row of cards with different description lengths lines up.
* List tables no longer clip header tooltips. Plugin Check compliance fixes (escaped table names, annotated direct queries, text domain loading, remote hero images).

= 1.14.0 =
* **A Wix look in wp-admin** — every plugin screen now follows the Wix Design System: the Wix Madefor font, Wix blue pill buttons, card-based layouts and tables, uppercase status badges and Wix-style empty states. Home, Store home, Orders and Bookings are rebuilt on Wix page layouts (page header with actions, cards, quick actions). Other admin screens are unchanged.
* **Storefront style** — Wix › Settings › Storefront style switches the shop, booking, events and member widgets to a "Wix style" preset (Wix Madefor, Wix blue, pill buttons, 8px cards) on any theme. The theme-friendly look stays the default.
* **A sidebar for one Wix business, not a Business Manager dashboard** — the wp-admin sidebar now shows business-wide menus (Customers, Analytics, Marketing, alongside Wix's Home, AI tools, Payments and Settings) at the top, then each installed app's own menu (Stores, Bookings, Events, Pricing Plans, Members Area). The old Business Manager dashboard is retired: its contacts, leads and loyalty views moved to native screens under Customers and Marketing, and its AI Assistant moved under Wix › AI tools.
* **Members Area, competitive with membership plugins** — Wix badges and pricing plans become WordPress roles (`wix_badge_*`, `wix_plan_*`), synced on login, from member / badge / plan-order webhooks and hourly. Members who hold several roles (for example, with the Members plugin's multiple roles) can now log in; accounts with any other role are still never adopted. Blocked or deleted members lose their roles and every WordPress session.
* **Content restriction** — a "Member access" panel on every post type (classic meta box too), per-block visibility with a "Members only" group, and an access section on every Elementor element: any logged-in member, a plan, any plan, a badge or a WordPress role, with a message, login button, "See plans" button, redirect or teaser for everyone else. Restricted content is kept out of the page, excerpts, REST, feeds, search, archives, comments and the sitemap, is marked noindex, and is sent with private cache headers. `[wix_gated]` adds `badge`, `role`, `logged_in` and `not`; `plan` works as before.
* **Members-only site** — require login for the whole site, with the login, signup, account and plans pages, the privacy policy and pages you choose left open. Optionally close the REST API too (webhooks keep working).
* **Manage members in wp-admin** — Members Area gets Members (Wix status, badges, plans, last login and linked WordPress user; approve, block, unblock, assign and remove badges), Badges (create, edit and delete Wix badges), Access (defaults, members-only site, which members may open wp-admin, synced roles, every restricted post) and Community tabs.
* **Account hub** — new Subscriptions (active plans, with cancel at the end of the period) and Settings (make the profile public or private, delete the account) tabs; `?tab=` opens a tab directly, and login returns visitors to the page they came from.
* **Community** — public member profiles at `/{profile-page}/{member}` (only members who made their profile public, and only fields marked Public; never emails), a `[wix_members]` directory filterable by badge or plan, a header login bar block and shortcode, and Google / Facebook login through Wix.
* **Wix Stores, WooCommerce-style** — when your Wix site has Wix Stores, wp-admin gets a store that looks and works like WooCommerce's: top-level Wix Stores, Products, Payments, Analytics and Marketing menus (folded into one "Wix Stores" menu when WooCommerce is active), count badges, and a shared header bar. Everything renders from local data, so no store page waits on Wix.
* **Products** — the Products list has WooCommerce's columns (image, SKU, stock, price, categories), filters (category, physical / digital / with variants, stock status), sortable SKU / price / stock, SKU search and quick edit of price, sale price, SKU and stock. Adding or editing a product uses a "Product data" box (General, Inventory, Shipping, Variants): regular and sale price, SKU, tracked stock or in / out of stock, weight, ribbon, images, and options with a price, SKU, weight and stock per variant. New products are created in Wix on their first save; if Wix refuses a change nothing is saved and the form keeps what you typed.
* **Categories** — Products → Categories mirrors your whole Wix category tree, and adding, renaming, moving or deleting a category there changes it in Wix.
* **Orders** — an Orders list with status views, search and a month filter, and an order screen with items, addresses, totals and history, where you can fulfil (with tracking), mark offline payments as paid, cancel and refund (through the payment provider, or recorded as a manual refund). A local copy of your orders is kept current by order webhooks, an hourly catch-up and "Update now".
* **Customers, Coupons, Analytics** — customers from your orders (orders, total spend, last order); coupons (percentage, amount, sale price, free shipping, buy X get Y; for all products, one product, a category or a minimum order); analytics with date ranges and comparison, KPIs, charts, top products and customers, and a stock report.
* **Home, Marketing, Payments, Settings** — a setup task list, store stats and orders to fulfil; marketing channels and coupons; payment setup in Wix; and Settings tabs (store details from Wix, low-stock threshold, hide out-of-stock products, "Coming soon" mode, order data and webhooks).
* **Fixes** — autosaves no longer write to Wix (a new product could be created in Wix more than once, and a published product's unsaved edits could go live); scheduled products now become visible in Wix when they publish; the hourly sync no longer blanks product SKUs; a bulk edit that Wix refuses for one product no longer stops the rest; product editor links open the current Wix dashboard page.
* **Faster storefront** — `[wix_products]` & co. are cached until your mirrored content changes, and product images load in one query.
* **Wix Bookings, WordPress-native** — when your Wix site has Wix Bookings, wp-admin gets a "Wix Bookings" menu built on core screens: Home (KPIs with change against the previous period, bookings-per-day and revenue-by-service charts, today's timeline per staff member, next bookings, a setup list), a Calendar (Day with a column per staff member, Week, Month, List; click an empty slot to book, click a booking to confirm, decline, cancel or reschedule), a Bookings list (status views with counts, filters, search, Screen Options, bulk confirm / decline / cancel, CSV export) with a booking screen, Customers (bookings, visits, spend), Staff, Services with a "Booking settings" box (duration, price, deposit, buffer, online booking, staff, colour) and Settings. "Add booking" (from the list, the calendar and the admin bar) books a customer into a live Wix slot, paid at the venue. A "Today's bookings" Dashboard widget and a pending-bookings badge. A local copy of your bookings is kept current by booking webhooks, an hourly catch-up and "Update now"; every change is made in Wix first. The Business Manager's bookings pages now open these screens.
* **Booking form and My Bookings** — `[wix_book]` (also a block and an Elementor widget; `service`, `staff`, `category` and `show_staff` preselect or skip steps) walks through service, staff, a month calendar of available days and times, then Wix checkout; on return it confirms the booking with an "Add to calendar" download. My Bookings has Upcoming, Past and Canceled tabs, and customers can cancel or reschedule within the service's policy (each checked on the server against the signed-in member). New Staff and My Bookings Elementor widgets.
* **Booking checkout fixed** — "Book now" loads real time slots (Wix Time Slots) in the visitor's time zone and opens Wix checkout for the chosen slot. It no longer fails with a Wix server error, and it no longer creates a booking before payment.
* **Event tickets fixed** — "Get tickets" opens an on-page ticket picker (ticket type and quantity), reserves the tickets and then opens Wix checkout. It no longer fails because a reservation is missing. RSVP and external-registration events link to their Wix event page. Past, cancelled, sold-out and closed events no longer offer tickets and are hidden from event lists (add `show_past="1"` to show them).
* **Wix Events** — TEC-style admin menu, Setup Guide, venues, organizers, categories with colours, calendar views (List, Month, Week, Day, Photo), Events Bar, iCal feeds and add to calendar, calendar embeds, richer event JSON-LD. Site Health checks that every published event is in the calendar index and that no page hides the events calendar URL.
* **Add to cart tells the truth** — when Wix quietly drops an item (out of stock, or unavailable), the shopper now sees an error instead of an empty cart.
* **Contact form delivers messages** — `[wix_contact]` saves each message in Wix CRM (the contact plus a note) when an API key is set, and emails it to the site admin (filter: `wixhc_contact_recipient`). A visitor sees "sent" only when delivery worked. There is also a spam honeypot and a rate limit. The leftover "Pet's name" field is gone.
* **Verified Wix APIs** — the coupon, staff, inventory and Inbox calls now match Wix's documented APIs, checked against a live site. This replaces the earlier "verify before production use" note. Coupons are applied through Update Current Cart, and staff comes from Staff Members. Inventory edits send the item's revision. Wix has no API that lists Inbox conversations, so the Manager's Inbox links to your Wix dashboard.
* **Security** — AI-generated SVGs reject DTDs and entities (XXE), and AI page markup is filtered with `wp_kses_post`. The AI provider URL is checked after DNS resolution. Webhooks refuse expired or replayed tokens. Rate limits find the real visitor IP behind a CDN (filter: `wixhc_trusted_proxies`). A WordPress account's email can see Wix orders only when the account is linked to a Wix member. Member emails are masked in the log.
* **Privacy tools** — WordPress's Export / Erase Personal Data tools now cover the Wix member link and the local order copy, and Settings → Privacy offers suggested policy text.
* **Works with page caching** — `[wix_gated]` no longer writes to the database on every view, and it keeps working on cached pages. Stale nonces on cached pages are refreshed automatically. Page caches are purged after a sync: WP Rocket, LiteSpeed, W3 Total Cache, WP Super Cache, SiteGround and WP Fastest Cache (action: `wixhc_purge_page_cache`).
* **Faster, sturdier** — `[wix_hours]` is cached and never waits more than 5 seconds for Wix. Wix rate-limit and server errors are retried. Two content syncs can no longer run at once.
* **Analytics events** — add to cart and the start of checkout (cart, booking, tickets) are sent as GA4 ecommerce events (through gtag or the GTM dataLayer) and as Meta Pixel events whenever those tags are on the page. Turn this off with the `wixhc_analytics_events` filter. Developers can listen for `wixhc:added_to_cart` and `wixhc:begin_checkout` DOM events on `document`.
* **Site Health** — Tools → Site Health now reports the Wix connection and content sync, and adds a "Headless Connect for Wix" panel to the Info tab.

= 1.13.0 =
* **Updating keeps item pages working** — after an update (zip upload or the updater) the plugin now refreshes its permalinks and schedules the content sync itself, so mirrored item pages resolve without re-saving Settings → Permalinks.
* **Code quality** — the plugin was reorganised to WordPress coding standards: inline scripts and styles moved to enqueued files, more strings are translatable, and request input is consistently sanitized.
* **Fixes** — the Business Manager Calendar view no longer fails to open; AI page messages are no longer double-escaped; the cart's "Browse the shop" link rejects unsafe URLs; long non-Latin event venue names are no longer cut mid-character; the Diagnostics page no longer errors on PHP 8 when its log is corrupt.
* **Privacy** — the readme now documents the optional Google reCAPTCHA service used by the Members Area.
* **Native WordPress content** — Wix Stores products, Bookings services, Events and Pricing Plans now mirror into native post types (`wixhc_product`, `wixhc_service`, `wixhc_event`, `wixhc_plan`) with product and service categories, alongside Blog and every public CMS collection (no picker). Sync is always on once the API key and Site ID are saved.
* **Manage Wix content in WordPress** — products, services, events, pricing plans, blog posts and CMS items are edited in their normal WordPress screens (block editor, Quick Edit, Trash) and every save is written to Wix first: price, compare-at price, SKU, stock and images for products (images you pick from the Media Library are uploaded to Wix); price and tagline for services; price, billing cycle, trial and perks for plans; dates, venue and description for events. If Wix refuses a change — or it was changed in Wix since you opened it — nothing is saved and you see why. Moving an item to the Trash hides it in Wix (a product is deleted in Wix, since 1.19.1); deleting it permanently deletes it in Wix. The Business Manager's content screens now open these native lists; it keeps orders, bookings, inventory, categories, discounts and customers.
* **Storefront from the mirror** — `[wix_products]` & co. render server-side in Wix's own order, with each card linking to its item page; buttons stay live. Business Manager edits sync to WordPress immediately, and Manager lists link to each item's WordPress page. Mirrored item lists in WP Admin show image, price and stock, and point to the Business Manager instead of offering "Add New".
* **Server-rendered item pages** — each mirrored item has its own URL (e.g. `/product/…`) rendered on the server with price, stock, dates, location and an add-to-cart / book / tickets / subscribe button that re-checks Wix before selling.
* **SEO** — Product, Event, Service and BlogPosting structured data; meta description and Open Graph tags when no SEO plugin is active; mirrored items appear in the WordPress sitemap and site search.
* **Webhooks** — the webhook endpoint now covers every mirrored type, answers Wix immediately and syncs in the background; the Content Sync page explains the Wix Custom App setup.
* **Members Area** — a new Members Area page (Wix › Members) sets up member accounts: choose the account page, protect signup and login with reCAPTCHA, pick the profile fields members fill in (First/Last Name, Phone, Address, Birthdate, Company, Position, or your own custom fields, created on your Wix site), mark each Private or Public, reorder them, and choose which tabs the account page shows. `[wix_account]` is now a member hub with Profile (view and edit), My Orders and My Bookings tabs. Members are site members of your connected Wix site (no Wix account needed); each one also gets a linked WordPress user with the new "Wix Member" role, is signed in to WordPress, and never sees wp-admin. Signup now follows your Wix settings for email confirmation (members enter the emailed code) and manual approval, and the login form adds "Create an account" and "Forgot password?".
* **Diagnostics** — a Content sync health check (off / never run / stale / errors), and a "Managed in Wix" box on mirrored posts.
* **Fixes** — the scheduled sync no longer aborts with a fatal error when listing CMS collections; synced content and data no longer lose backslashes (e.g. `\u2014` escapes); an item restored in Wix is restored from the WordPress trash even when its Wix update time didn't change; uninstall now removes all content-sync settings and scheduled events.

= 1.10.1 =
* **Security hardening** — the blog / rich-content renderer now clamps heading levels and blocks dangerous URL schemes (`javascript:`, `data:`) in links and images; member and contact initials in the Business Manager are escaped; the AI module guards its outbound requests against private/loopback addresses. The AI settings screen no longer renders your saved LLM API key into the page HTML.
* **Reliability** — a transient token-fetch failure no longer blanks every storefront widget for the page load (the next request retries); the cart serializes quantity/remove/coupon actions so rapid clicks can't race; Business Manager "Refresh" and pagination actions now surface errors instead of failing silently.
* **Revenue by currency** — the Business Manager home no longer sums different currencies into one figure.
* **More translatable strings** — the Connections page and storefront notices are now fully internationalized.
* **Admin font self-hosted** — the Wix Madefor font used by the admin UI now ships with the plugin instead of loading from Google Fonts, for privacy and offline reliability.
* Full uninstall cleanup now also removes onboarding-progress data.

= 1.9.0 =
* **Native booking picker** — `[wix_services]` now schedules on-site: "Book now" opens an inline date strip + time-slot grid (with staff names), creates the booking, and sends the visitor to Wix only for payment. Falls back to the full Wix flow if live availability is unavailable, so nothing regresses.
* **Member bridge** — new `[wix_my_orders]` and `[wix_my_bookings]` shortcodes show a logged-in WordPress user their own Wix orders and bookings. The account is matched by email, resolved server-side, and results are scoped defensively so a user only ever sees their own records.
* **Product options / variants** — `[wix_products]` now lets shoppers pick options (e.g. Size, Color) and a quantity on-page before adding, so the correct variant goes into the cart instead of always the first one. Single-variant products keep one-click add-to-cart.
* **Coupons at the cart** — `[wix_cart]` gains a coupon box: apply a code, see the discount before checkout, and remove it again. Pairs with the Manager's Discounts view for end-to-end coupons.
* **Inbox in Business Manager** — a new Inbox tab lists visitor conversations and lets you read a thread and reply as the business, without leaving WP Admin.
* **Grouped Business Manager navigation** — the sidebar now mirrors the Wix dashboard: Catalog, Sales, Bookings, Content and Customers groups with hover flyout submenus.
* **Fixed Categories and Coupons** — corrected to Wix's real endpoints (`/categories/v1/categories` with the required tree reference; `/stores/v2/coupons`), replacing the paths that returned 404. Abandoned-checkout recovery links out to the Wix dashboard (that API has no list endpoint).
* **Restyled Upgrade buttons** — premium blue→purple gradient with a crown.
* **Wix upgrade card** on the WordPress Dashboard home (dismissible), linking straight to the site-scoped Wix package picker.
* The Setup checklist's **Set Up Payments** action now opens the Wix package picker directly (accepting payments needs a premium plan).
* New Diagnostics checks: **Live: Wix Bookings (native picker)**, **Live: Wix Inbox (Manager messaging)**, and registration of the new endpoints.
* Storefront strings are now translatable via `wp-i18n`.
* Note: the Bookings availability/create shapes, the booking-id redirect field, the orders/bookings email filters, the cart coupon apply/remove routes, and the Inbox conversation/message routes follow Wix's conventional REST shape — verify against the live APIs before production use.

= 1.8.0 =
* New **Setup** page — a Wix-style "Let's get you set up" onboarding checklist inside WP Admin, with live completion detected from your Wix content and a progress bar.
* New **Upgrade** buttons (Business Manager header, Setup page, and the Plugins screen) that open the Wix package picker, scoped to your site when a Site ID is saved.
* Business Manager eCommerce expansion: order actions (mark paid, cancel, refund, add tracking), an **Inventory** view, a **Categories** view, and a **Discounts** view (coupons + abandoned carts). Order actions use verified Wix eCommerce endpoints; refund and mark-as-paid read the order's payment transactions first.
* Product editing now supports **image URLs** and **options** (e.g. Size: S, M, L).
* Admin UI restyled to the Wix Design System — Wix Madefor font and WDS color/spacing tokens.
* Note: the Stores catalog write shapes (categories, inventory, coupons) still use Wix's conventional REST shape — verify against the live Stores/Coupons API before production use.

= 1.7.0 =
* Widget + shortcode filters: product type/ribbon/brand, upcoming/RSVP/ticketed events, service type.
* SALE badges with strikethrough original price; low-stock "Only X left" and out-of-stock badges.

= 1.6.0 =
* Elementor integration: Wix Products, Services, Events, Blog and Cart widgets with item limit, columns and color controls. Soft dependency — everything works without Elementor.
* Shortcodes now accept limit/columns, e.g. `[wix_products limit="6" columns="3"]`.

= 1.5.0 =
* WordPress.org readiness: i18n, license, uninstall cleanup, bundled-asset policy, hardened SVG sanitization and input validation.
* Renamed from "Wix Headless Connect"; settings migrate automatically.

= 1.4.x =
* AI chat history, markdown rendering, professional chat UI, model-agnostic LLM support.

= 1.0.0 =
* Business Manager dashboard, on-site cart, storefront shortcodes.
